摘要: print(value,sep=' ',end='\n',file=sys.stdout, flush=False) sep=' '默认空格 print('hello','world') #hello world print('hello','world',sep='|') #hello|world 阅读全文
posted @ 2016-02-26 22:18 fj0716 阅读(279) 评论(0) 推荐(0) 编辑
摘要: string.ascii_lowercase ='abcdefghijklmnopqrstuvwxyz' string.ascii_uppercase ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' string.ascii_letters ='abcdefghijklmnopqrstu 阅读全文
posted @ 2016-02-26 20:38 fj0716 阅读(310) 评论(0) 推荐(0) 编辑
摘要: random.random() 返回[0,1)之间的浮点数 random.randrange(stop) / random.randrange(start,stop[,step]) 返回[0,stop) / [start,stop)且步长为step的整数 random.randint(start,s 阅读全文
posted @ 2016-02-26 17:37 fj0716 阅读(179) 评论(0) 推荐(0) 编辑