Commit 5bd3d118 by BellCodeEditor

save project

parent 46fa203e
Showing with 31 additions and 10 deletions
list=["石头","剪刀","布"]
player = input("出什么/石头/剪刀/布")
print("玩家出:"+player)
import random
computer=random.choice(list)
print("电脑出:"+computer)
if player==computer:
print("平局")
else:
if player== "石头" and computer=="剪刀":
print("玩家胜")
else:
if player== "剪刀" and computer=="石头":
print("电脑胜")
else:
if player== "石头" and computer=="布":
print("电脑胜")
else:
if player== "剪刀" and computer=="布":
print("玩家胜")
else:
if player== "布" and computer=="剪刀":
print("电脑胜")
else:
if player== "布" and computer=="石头":
print("玩家胜")
import turtle
ink = input("什么色?")
pen = turtle.Pen()
pen.fillcolor(ink)
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
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