Commit c6f641e3 by BellCodeEditor

auto save

parent c465ecdc
Showing with 17 additions and 3 deletions
neme=input("输入名字") import random
print(neme+"你好啊") list=['石头','剪刀','布']
\ No newline at end of file computer=random.choice(list)
player=input("玩家:请出(石头/剪刀/布)")
print("机器人出"+computer)
print("玩家出"+player)
if player==computer:
print("平局")
elif player=="剪刀" and computer=="布":
print("玩家赢")
elif player=="石头" and computer=="剪刀":
print("玩家赢")
elif player=="布" and computer=="石头":
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