2019年10月19日
摘要: try: name 2+'3' [][3] {}['k'] ret = int(input('number>>>')) print(ret*'*')except ValueError: print('输入的数据有误')except Exception: print('你错了,老铁')else: pr 阅读全文
posted @ 2019-10-19 23:30 Test-Billy 阅读(4557) 评论(0) 推荐(0) 编辑
  2019年10月15日
摘要: import randomdef v_code(): code= '' for i in range(5): num = random.randint(0,9) #随机生成0到9的整数 alf = chr(random.randint(65,90)) #根据 ascii码,随机生成字母 add = 阅读全文
posted @ 2019-10-15 14:54 Test-Billy 阅读(373) 评论(0) 推荐(0) 编辑