摘要:
import stringprint (random.random()) # 0-1之间选浮点数print (random.randint(0,99,))#0-99之间选任意整数print (random.randrange(10,99,3))#10-99间以步长为3 随意选一个print (ran 阅读全文
posted @ 2017-02-21 10:14
LV_VL
阅读(216)
评论(0)
推荐(0)
摘要:
模块的导入 form spam import read1 注意 read1可以直接调用 read1这样容易给其它相同的模块名的冲突 批量导入模块,两种方法 form spam import read1,read2,read3 form spam import (read, read2, read3, 阅读全文
posted @ 2017-02-21 09:35
LV_VL
阅读(98)
评论(0)
推荐(0)