import random
str1 = input("请输入你的名字:")
print("hello!{}".format(str1))
guard = ord(str1[0]) % 100
print("您的幸运数是", random.choice(range(guard)))
微信扫一扫
import random
str1 = input("请输入你的名字:")
print("hello!{}".format(str1))
guard = ord(str1[0]) % 100
print("您的幸运数是", random.choice(range(guard)))
相关推荐