文章分类 -  1-python基础

变量 运算符 不可变序列 可变序列 字典 集合
python写文件
摘要:1 from time import sleep 2 myfile = open(r'C:\Users\Administrator\Desktop\1.txt','w')#默认的打开权限就是r 3 #read->r 4 #write->w 5 #binary->b 6 myfile.write('abcabcabcabcabcabc\n') 7 myfile.write('----... 阅读全文
posted @ 2016-09-15 00:39 enet01 阅读(100) 评论(0) 推荐(0)
python函数嵌套函数
摘要:def func(): print("helloworld") global func1 def func1(): print("hello world") func() func1() 执行: hello heloTraceback (most recent call last): File "C 阅读全文
posted @ 2016-09-15 00:18 enet01 阅读(106) 评论(0) 推荐(0)
python语法
摘要:1,变量 2.运算符 3. 阅读全文
posted @ 2016-09-15 00:08 enet01 阅读(70) 评论(0) 推荐(0)