摘要: 链接地址 阅读全文
posted @ 2018-01-22 12:32 魂~ 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 3 print(random.random()) # [0, 1),浮点数 4 print(random.uniform(1, 10)) # [1, 10]浮点数 5 print(random.randrange(1, 10)) # 不包括10 6 print(random.randi... 阅读全文
posted @ 2018-01-22 12:16 魂~ 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1 import configparser 2 3 4 """ 5 sections() 返回所有的section 6 has_section(section) 判断是否有指定的section 7 has_option(section, option) 判断是否有指定的section中的option 8 options(section) 返回指定section中的所有opti... 阅读全文
posted @ 2018-01-22 10:25 魂~ 阅读(431) 评论(0) 推荐(1) 编辑