您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

11 行
417 B

  1. def renderPassword(mdp, quotient, alphabet):
  2. if len(mdp) > 14:
  3. return mdp
  4. quotient, remainder = divmod(quotient, len(alphabet))
  5. mdp += alphabet[remainder]
  6. return renderPassword(mdp, quotient, alphabet)
  7. alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
  8. print(renderPassword('', int('dc33d431bce2b01182c613382483ccdb0e2f66482cbba5e9d07dab34acc7eb1e', 16), alphabet))