摘要: 代码结构由':'号和缩进 来标示. 函数: def 定义 不定参数: *args: tarple可逐个传, 整体传, *拆包传 **kwargs dict可逐个传, 整体传, ** 拆包传, 有2个不定参调用其它函数转发传递时,要用拆包传,防止粘连 调用父类函数的3种方法 super(). supe 阅读全文
posted @ 2019-04-07 23:41 乘于时 阅读(893) 评论(0) 推荐(0)
摘要: GC Garbage Collection 垃圾回收器 自动释放资源 关键字: new 1.创建对象 2.隐藏从父类继承的同名函数 using 1.引用命名空间 2. using(FileStream fsRead = new FileStream(source, FileMode.Open, Fi 阅读全文
posted @ 2019-04-07 23:39 乘于时 阅读(2271) 评论(0) 推荐(0)
摘要: 快速构建构造函数<!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--> 输入 ctor 然后按 TAB 键 快速构建自动属性 在变量那里,右击鼠标,点“重构”--“封装字段” Visual S 阅读全文
posted @ 2019-04-07 23:36 乘于时 阅读(2045) 评论(0) 推荐(0)