标签:add return random 随机 python pytho turn int ret
import random def r_code(): code = ‘‘ for i in range(6): num = random.randint(0,9) alf = chr(random.randint(65,90)) add = random.choice([num,alf]) code = "".join([code,str(add)]) return code print(r_code())
标签:add return random 随机 python pytho turn int ret
原文地址:https://www.cnblogs.com/kaiyuan111/p/10544789.html