Commit d48dad23 by BellCodeEditor

auto save

parent c256c561
Showing with 50 additions and 2 deletions
# 我们都爱夸夸夸 #name=input("请输入你的名字:")# 我们都爱夸夸夸
\ No newline at end of file
#print(name+",欢迎你")
import turtle
len=int(input("输入长度:"))
pen=turtle.Pen()
for i in range(5):
pen.forward(len)
pen.right(144)
turtle.done()
while True:
import random
player=input("请出拳:")
print("玩家出拳:"+player)
list=["石头","剪刀","布"]
compurter=random.choice(list)
print("电脑出拳:"+compurter)
if player in list
if player ==compurter:
print("平局")
elif player=="石头"and compurter=="剪刀"or player=="剪刀" and compurter=="布"or player=="布"and compurter=="石头":
print("你赢了")
else:
print("你输了")
else
print("输入错误")
\ 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