摘要:
正乘法表 #1 for i in range(1,10): for j in range(1,i+1): line="{}*{}={}\t".format(j,i,j*i) print(line, end='') print() 效果: 1*1=1 1*2=2 2*2=4 1*3=3 2*3=6 3 阅读全文
摘要:
# 应用,随机验证码 def make_code(size=4): res = '' for i in range(size): res1 = chr(random.randint(65, 90)) res2 = str(random.randint(0, 9)) res += random.cho 阅读全文