摘要: 1 def check_code(): 2 import random 3 checkcode = '' 4 for i in range(4): 5 current = random.randrange(0,4) 6 if current != i: 7 temp = chr(random.ran 阅读全文
posted @ 2020-05-15 13:58 callmeVcc 阅读(59) 评论(0) 推荐(0)
摘要: 基本数据类型 数字 整型 int -int 将字符串转换为数字 a = "123a" print(type(a),a) b = int(a) print(type(b),b) num = "0011" v = int(num,base = 16)##十六进制表示v print(v) -bit_len 阅读全文
posted @ 2020-05-15 10:57 callmeVcc 阅读(37) 评论(0) 推荐(0)