Commit 2b99f8c6 by BellCodeEditor

save project

parent 9afbb9f7
Showing with 16 additions and 1 deletions
player=input("你想出剪刀/石头/布?:") player = input("你想出剪刀/石头/布?:")
print("玩家出"+player) print("玩家出"+player)
import random
list=["剪刀""石头""布"]
computer=random.choice(list)
print(computer)
\ No newline at end of file
player = input("你想出剪刀/石头/布?:")
print("玩家出"+player)
import random
list=["剪刀""石头","布"]
computer=random.choice(list)
print(computer)
\ No newline at end of file
...@@ -10,3 +10,6 @@ for i in range(5): #重复执行5次 ...@@ -10,3 +10,6 @@ for i in range(5): #重复执行5次
pen.right(144) #向右移动144度,注意这里的参数一定不能变 pen.right(144) #向右移动144度,注意这里的参数一定不能变
pen.end_fill() #结束填充红色 pen.end_fill() #结束填充红色
turtle.done() turtle.done()
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