Commit 2825a5d1 by BellCodeEditor

save project

parent 17887684
Showing with 8 additions and 14 deletions
import random import turtle
player = input("请玩家出拳:") turtle.write("你好呀!",font=("Times",20,"normal"))
print("玩家出:"+player)
list4 = ["石头","剪刀","布"] turtle.forward(100)
turle = random.choice(list4)
print("计算机出:"+turle) turtle.hideturtle()
if player == "石头" and turle == "剪刀": turtle.done()
print("玩家赢") \ No newline at end of file
elif player == "剪刀" and turle == "布":
print("玩家赢")
elif player == "布" and turle == "石头":
print("玩家赢")
elif player == turle:
print("平局")
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