上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: os 重点是: os.stat('path/filename') os.dirname(path) oa.dirname(paht) os.system('command') os.path.join(path1[, path2[, ...]]) 将多个路径组合后返回,第一个绝对路径之前的参数将被忽 阅读全文
posted @ 2017-03-02 09:22 ezway 阅读(149) 评论(0) 推荐(0)
摘要: Microsoft Windows [版本 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. C:\windows\System32>d: D:\>cd D:\Program Files (x86)\Python35-32\Scripts D:\Program Files (x86)\Python35-32\S... 阅读全文
posted @ 2017-03-01 14:06 ezway 阅读(100) 评论(0) 推荐(0)
摘要: 原文章 Lable(master=None,**option) parameter: Features 1.lable可以自动跟新文本,在文本更新时,lable也会自动更新 2.lable用于在屏幕上显示文本或者图像,文本可以换行,但是字体只能是单一字体 阅读全文
posted @ 2017-02-24 14:29 ezway 阅读(531) 评论(0) 推荐(0)
摘要: 机器学习 http://mmmono.com/g/meow/936014/ 阅读全文
posted @ 2017-02-23 18:54 ezway 阅读(103) 评论(0) 推荐(0)
摘要: json中的“”括起来的才是字符串,python里面字典元素必须是双引号,其他的会报错 pickle 一次只能载入一字典 列表等等 若想要载入两个字典就把两个字典弄到一个列表里面 jason和pickle的用法差不多 都是dump、load 阅读全文
posted @ 2017-02-20 16:25 ezway 阅读(214) 评论(0) 推荐(0)
摘要: pycharm快捷键 阅读全文
posted @ 2017-02-20 14:06 ezway 阅读(114) 评论(0) 推荐(0)
摘要: import sys,time for i in range(51): sys.stdout.write('\r') sys.stdout.write('%s%%|%s' % (int(i/50*100),int(i)*'#')) sys.stdout.flush() time.sleep(0.35) 阅读全文
posted @ 2017-02-20 11:07 ezway 阅读(104) 评论(0) 推荐(0)
摘要: lis=[] def fib(depth): # if depth==0: # a1=0 # a2=1 # a3=a1+a2 # elif depth==1: # a1=1 # a2=1 # a3=a1+a2 # else: # fib(depth)= fi... 阅读全文
posted @ 2017-02-20 10:13 ezway 阅读(154) 评论(0) 推荐(0)
摘要: time 模块常用 print(time.asctime()) #参数是time tuple,如果不给time tuple就返回当前时间 返回时间格式"Fri Aug 19 11:14:16 2016 time.localtime() time.struct_time(tm_year=2017, t 阅读全文
posted @ 2017-02-18 15:21 ezway 阅读(615) 评论(0) 推荐(0)
摘要: sys.argv 命令行参数List,第一个元素是程序本身路径 sys.exit(n) 退出程序,正常退出时exit(0) sys.version 获取Python解释程序的版本信息 sys.maxint 最大的Int值 sys.path 返回模块的搜索路径,初始化时使用PYTHONPATH环境变量的值 sy... 阅读全文
posted @ 2017-02-18 15:21 ezway 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页