Commit 505ba83d by BellCodeEditor

auto save

parent 3e444abc
Showing with 37 additions and 11 deletions
ints = input("请出拳(石头/剪刀/布)") # # 输入一个十以内数字,测试你的未来
print("玩家出拳:"+ints) # num = int(input("请输入10以内的整数:"))
# if num == 10:
# print("未来可期~")
# elif num >= 7 and num < 10:
# print("未来不可限量")
# elif num > 3 and num <= 6:
# print("前途不可限量")
# else:
# print("努力吧~")
# 1.导入random模块
import random
# 2.玩家出拳
play = input("请玩家出拳(石头/剪刀/布):")
print("玩家出拳:"+play)
# 3.计算机出拳
com = ["石头","剪刀","布"]
coms = random.choice(com)
print("计算机出拳:"+coms)
if
\ No newline at end of file
import random # 输入一个十以内数字,测试你的未来
ikn = input("请出拳") num = int(input("请输入10以内的整数:"))
list = []
for i in range(100):
list.append(i)
for i in range(10): if num == 10:
num = random.choice(list) print("未来可期~")
print(num) elif num >= 7 and num < 10:
\ No newline at end of file print("未来不可限量")
elif num > 3 and num <= 6:
print("前途不可限量")
else:
print("努力吧~")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment