类的可访问属性有public,private,protect,innertal,protect internal.其中internal只有在同一程序集的文件中,内部类型或成员才是可访问。下面就用这个来继续程序集的事例 namespace AssemblyLibrary { internal clas ...
分类:
其他好文 时间:
2020-01-31 10:47:35
阅读次数:
84
看到了sql,发现好久没写sql甚是想念哈哈哈哈,好多当时学的东西都忘了,当时总结的好多的文档也怎么都找不到了..... 言归正传,找到了一张图感觉描述的还挺清晰,先贴图,再说说自己的理解。 1.LEFT JOIN(左连接) select id,name fromg student s left j ...
分类:
数据库 时间:
2020-01-30 23:09:50
阅读次数:
92
Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0 for all i and a?k??>0. Then N is palindrom ...
分类:
其他好文 时间:
2020-01-27 17:31:19
阅读次数:
64
获取DOM 给标签添加ref属性 ref='xxx' 然后获取 ele=this.$refs.xxx 1 <div id="app"> 2 <div ref="box">你好!</div> 3 <button @click="my_click">点我获取上面的标签</button> 4 </div> ...
分类:
其他好文 时间:
2020-01-26 23:55:16
阅读次数:
98
1.1 def outer(): a = 1 def inner(): print(a) a += 1 print('inner ') inner() outer() 内部函数可以使用外部函数的变量。 # python3 nonlocal 1.2 闭包: 嵌套的函数,内部函数调用外部函数的变量。 1 ...
分类:
其他好文 时间:
2020-01-26 11:49:36
阅读次数:
79
这道题虽然简单,但是需要注意的点还是比较多,首先是如果一直有重复的duplicate,要把所有的都去掉,所以inner loop是while而不是if,其次是每一层loop结束的条件,要搞清楚是head,还是head.next是不是None。 最后学习一下在python中如何建立一个class并且写 ...
分类:
其他好文 时间:
2020-01-26 10:31:56
阅读次数:
69
布局文件 <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/ ...
分类:
移动开发 时间:
2020-01-25 22:13:01
阅读次数:
125
首先,上一段代码: 1 def out(): 2 a=1 3 def inner(): 4 a+=1 5 print(a) 6 return inner 7 func = out() 8 func() 初略看上去没有什么问题,运行之后报错:UnboundLocalError: local varia ...
分类:
其他好文 时间:
2020-01-23 19:49:45
阅读次数:
83
### ```js var str = ' hello ' console.log(str.trim()) //hello 去除两端空格 var str1 = ' he l l o ' console.log(str.trim()) //he l l o 去除两端空格 ``` ```html Doc... ...
分类:
其他好文 时间:
2020-01-22 10:58:05
阅读次数:
48
SELECT a.AuxiliaryName, a.AuxiliaryDetailId, b.AuxiliaryName FROM `Finance_VoucherBillDetail` a INNER JOIN Finance_VoucherAuxiliary b ON a.AuxiliaryDe ...
分类:
其他好文 时间:
2020-01-20 19:00:54
阅读次数:
70