Commit 7c8f109a by BellCodeEditor

save project

parent f51d025d
Showing with 12 additions and 4 deletions
import.turtle
pen=turtle.pen
pen.write("Times,50,normal") ,font=("Times,50,normal")
pen.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -4,12 +4,13 @@ import random
sb=["石头","剪刀","布"]
asbf=random.choice(sb)
print("电脑的出拳:"+asbf)
if qaz in asbf:
if me in sb:
if me == asbf:
print("平局")
print("平局")
elif (me=="剪刀" and asbf=="布") or (me=="石头" and asbf=="剪刀") or (me=="布" and asbf=="石头"):
print("你赢了")
print("你赢了")
else:
print("你输了")
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