Commit 7e10ddeb by BellCodeEditor

save project

parent f78ef38a
Showing with 13 additions and 2 deletions
...@@ -3,4 +3,9 @@ print("玩家出拳:"+p) ...@@ -3,4 +3,9 @@ print("玩家出拳:"+p)
import random import random
a=["石头","剪刀","布"] a=["石头","剪刀","布"]
c=random.choice(a) c=random.choice(a)
print("电脑出拳:"+c) print("电脑出拳:"+c)
\ No newline at end of file if p==a:
print("平局")
elif p=="剪刀" and a="石头"
print
import turtle
import turtle
pen=turtle.Pen()
pen.write("I live you.",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
\ 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