摘要:
import random import string # 随机整数: print random.randint(1,50) # 随机选取0到100间的偶数: print random.randrange(0, 101, 2) # 随机浮点数: print random.random() print 阅读全文
posted @ 2021-01-02 14:21
橄榄叶
阅读(494)
评论(0)
推荐(0)
摘要:
file1=open("test.txt","r",encoding="utf-8")file2=open("test1.txt","w",encoding="utf-8")txt=file1.read()file2.write(txt) 1 转换a,b的值 a=1 b=2 a,b=b,a 2 if 阅读全文
posted @ 2021-01-02 10:57
橄榄叶
阅读(95)
评论(0)
推荐(0)

浙公网安备 33010602011771号