摘要: 1.去官网(https://www.python.org/downloads/)下载软件。2.运行安装程序:下一步 next。下一步 next全部选中,下一步 next。安装中。。来自:http://www.cnblogs.com/osfipin/安装中。。。安装结束 finish。。开始菜单中出现... 阅读全文
posted @ 2015-09-11 20:54 osfipin 阅读(1806) 评论(0) 推荐(0)
摘要: 继续翻译中。。。。The syntax of thepyinstallercommand is:pyinstaller [options] script [script ...] | specfile//You may give a path to the script or spec file, ... 阅读全文
posted @ 2015-08-23 16:56 osfipin 阅读(1767) 评论(0) 推荐(0)
摘要: 安装PyInstaller //地址 https://github.com/pyinstaller/pyinstaller/tree/python3 //上面的链接已经失效,新的(20160809更) https://github.com/pyinstaller/pyinstaller 方法一:直接 阅读全文
posted @ 2015-08-23 16:38 osfipin 阅读(23404) 评论(0) 推荐(0)
摘要: 首先去官方下载://官方网站http://www.gtk.org/download/index.php//下载链接http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.ziphttp://win32builder.gnome.o... 阅读全文
posted @ 2015-08-08 14:19 osfipin 阅读(4659) 评论(0) 推荐(0)
摘要: go语言 rune切片 示例package mainimport ( "fmt")//http://www.cnblogs.com/osfipin/func main() { var s = "go程序" var r = []rune(s) fmt.Printf("%c ",... 阅读全文
posted @ 2015-08-05 14:28 osfipin 阅读(5648) 评论(0) 推荐(0)
摘要: Go语言中的循环语句只支持for关键字,而不支持while和do-while结构。sum := 0 for i := 0; i 100 { break } } 条件表达式中也支持多重赋值:a := []int{1, 2, 3, 4, 5, 6} for i, j := 0,... 阅读全文
posted @ 2015-07-28 13:59 osfipin 阅读(505) 评论(0) 推荐(0)
摘要: 根据传入条件的不同,选择语句会执行不同的语句。下面的例子根据传入的整型变量i的不同而打印不同的内容:switch i { case 0: fmt.Printf("0") case 1: fmt.Printf("1") case 2: ... 阅读全文
posted @ 2015-07-28 13:52 osfipin 阅读(3887) 评论(0) 推荐(0)
摘要: 示例:if a < 5 { return 0 } else { return 1 } 关于条件语句,需要注意以下几点:  条件语句不需要使用括号将条件包含起来();  无论语句体内有几条语句,花括号{}都是必须存在的;  左花括号{必须与if或者else处于同一行;  在i... 阅读全文
posted @ 2015-07-28 13:49 osfipin 阅读(830) 评论(0) 推荐(0)
摘要: 数组切片内容复制用于将内容从一个数组切片复制到另一个数组切片。如果加入的两个数组切片不一样大,就会按其中较小的那个数组切片的元素个数进行复制。slice1 := []int{1, 2, 3, 4, 5} slice2 := []int{5, 4, 3} copy(slice2, slice1) //... 阅读全文
posted @ 2015-07-27 17:27 osfipin 阅读(1868) 评论(0) 推荐(0)
摘要: 创建数组切片Go语言提供的内置函数make()可以用于灵活地创建数组切片。创建一个初始元素个数为5的数组切片,元素初始值为0: mySlice1 := make([]int, 5) 创建一个初始元素个数为5的数组切片,元素初始值为0,并预留10个元素的存储空间: mySlice2 := make(... 阅读全文
posted @ 2015-07-27 17:25 osfipin 阅读(1016) 评论(0) 推荐(0)
我是底部