Commit 19f69392 by BellCodeEditor

save project

parent 8da7caa0
Showing with 5 additions and 37 deletions
import turtle
pen=turtle.Pen()
pen.write("诺依,turtle真好用我会在画布上写字啦!",font=("Times",30,"normal"))
turtle.done()
\ No newline at end of file
# 计算机出拳
import random
player=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
list=["剪刀","石头","布"]
c=random.choice(list)
print("电脑出拳:"+ c)
if player at list:
if player == list:
print("平局xxs")
elif (player=="石头" and list=="剪刀")or(player=="剪刀" and list=="布")or(player=="布" and list=="石头"):
print("你赢了xxs")
else:
print("你输了xxs")
else:
print("输入错误")
\ No newline at end of file
# 计算机出拳
import random
player=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
list=["剪刀","石头","布"]
c=random.choice(list)
print("电脑出拳:"+ c)
if player == list:
print("平局xxs")
elif (player=="石头" and list=="剪刀")or(player=="剪刀" and list=="布")or(player=="布" and list=="石头"):
print("你赢了xxs")
else:
print("你输了xxs")
\ 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