Commit d690891c by BellCodeEditor

auto save

parent d9cb69e2
Showing with 27 additions and 0 deletions
import random
player = input("请出拳:(石头|剪刀|布)")
print("玩家出拳:"+player)
list = ["石头","剪刀","布"]
pc = random.choice(list)
print("电脑出拳:"+pc)
while player in list:
if (player == "石头" and pc == "布") or (player == "剪刀" and pc == "布") or (player == "石头" and pc == "石头"):
print("你赢了!")
elif player == pc:
print("平局!")
else:
print("你输了!")
else:
print("输入错误!")
\ No newline at end of file
import turtle
color = input("你喜欢设么颜色呀?")
turtle.color(color)
turtle.fillcolor(color)
turtle.begin_fill()
for i in range(5):
turtle.forward(150)
turtle.right(144)
turtle.end_fill()
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