摘要: 模块:本质就是一个.py文件 分为三部分: 内置模块 第三方模块 自定义模块(模块调用,包) 加载顺序:内置模块——>自定义模块 time 模块 time 模块 # <1> 时间戳 >>> import time >>> time.time() # 返回当前时间的时间戳 1493136727.099 阅读全文
posted @ 2017-06-21 20:06 皖心 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 内置函数: 详查下网址 https://docs.python.org/3/library/functions.html?highlight=built#ascii divmod(x, y) # (商, 模)enumerate(可迭代对象) # (序号,值)eval(字符串) # 把字符串当成命令执 阅读全文
posted @ 2017-06-21 19:46 皖心 阅读(155) 评论(0) 推荐(0) 编辑