小哥哥编

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年10月20日

摘要: var dir = new Directory('bb/cc/ff/ee'); dir.createSync(recursive: true); //dir.createSync(recursive: false); 'bb/cc/ff/ee'是文件 '/bb/cc/ff/ee'是上级文件目录 tr 阅读全文
posted @ 2018-10-20 20:39 小哥哥编 阅读(200) 评论(0) 推荐(0) 编辑

摘要: print("hello world!"); print(Directory.current); print(Directory.systemTemp); // var ex= new File('file.txt').readAsStringSync(); // print(ex); String 阅读全文
posted @ 2018-10-20 20:29 小哥哥编 阅读(1822) 评论(0) 推荐(0) 编辑

2017年11月26日

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,Vcl.StdCtrls, Vcl.ExtCtrls,math;... 阅读全文
posted @ 2017-11-26 16:21 小哥哥编 阅读(449) 评论(0) 推荐(0) 编辑

2017年11月25日

摘要: type TByteArr = array of byte;//单元头定义 阅读全文
posted @ 2017-11-25 03:03 小哥哥编 阅读(836) 评论(0) 推荐(0) 编辑

2017年10月28日

摘要: 不能var m=map[string]int 要用make :make(map[string]int) 可以设置make的长度,比如:make(map[string]int,10) map的长度是可变不固定的,因此可以随意增加长度和减少长度。 阅读全文
posted @ 2017-10-28 02:50 小哥哥编 阅读(155) 评论(0) 推荐(0) 编辑

摘要: 下面一个例子: 这段代码输出多少了,答案是15,那为什么 这样就行。 阅读全文
posted @ 2017-10-28 00:18 小哥哥编 阅读(345) 评论(0) 推荐(0) 编辑

2017年10月27日

摘要: GO语言不比其他语言,在struct中,它没有构造函数,不必赋值也能不报错。 比如: 这是为什么呢,因为当命名一个类型的时候,string就默认为空,int类型默认为0,float64就默认为0.0,。 当初始化的时候,有几种方式可以用得上: 第一种: 第二种,直接: 第三种: 注意第三种 new的 阅读全文
posted @ 2017-10-27 23:50 小哥哥编 阅读(6596) 评论(0) 推荐(0) 编辑

2017年2月16日

摘要: python中的number具体分为: int(有符号整型) long(长整型[也可以代表八进制和十六进制]) float(浮点型) complex(复数) 变量命名: a=1 整数型 b=1.0 浮点型 c=1000025555441122 长整型 d=4.23+8.5j 复数类型 看上去很简单。 阅读全文
posted @ 2017-02-16 18:07 小哥哥编 阅读(2525) 评论(0) 推荐(0) 编辑

摘要: python的类型主要分为: Numbers(数字) String(字符串) List(列表) Tuple(元组) Dictionary(字典) 这些分类构成了python的基本元素,每个类型是python开发者必须掌握的类型。 阅读全文
posted @ 2017-02-16 17:54 小哥哥编 阅读(163) 评论(0) 推荐(0) 编辑

摘要: 今天起,每天记录python等语言的编程心得和体会 阅读全文
posted @ 2017-02-16 17:48 小哥哥编 阅读(214) 评论(0) 推荐(0) 编辑