1 #!/usr/bin/env python
 2 # -*- coding:utf-8 -*-
 3 import random
 4 temp =''
 5 for i in range(6):
 6     num = random.randrange(0,4)
 7     if num ==3 or num == 1:
 8         rad2 = random.randrange(0,10)
 9         temp = temp + str(rad2)
10     else:
11         rad1 = random.randrange(65,91)
12         c1 = chr(rad1)
13         temp = temp + c1
14 
15 print(temp)

 

相关文章:

  • 2021-09-04
  • 2021-12-31
  • 2022-03-01
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2021-12-07
  • 2021-12-31
  • 2021-08-11
  • 2021-12-31
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案