Commit 7e10ddeb by BellCodeEditor

save project

parent f78ef38a
Showing with 12 additions and 0 deletions
...@@ -4,3 +4,8 @@ import random ...@@ -4,3 +4,8 @@ import random
a=["石头","剪刀","布"] a=["石头","剪刀","布"]
c=random.choice(a) c=random.choice(a)
print("电脑出拳:"+c) print("电脑出拳:"+c)
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