Commit 850aff0f by BellCodeEditor

auto save

parent 5ef0c3e5
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
player=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print("计算机出拳:"+computer)
if player in list:
if player==computer:
print("平局")
elif(player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布")or(player=="布" and computer=="石头"):
print("恭喜,你赢了")
else:
print("很遗憾,你输了")
else:
print("你出错了")
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen
colors=['green','red','orange','yellow']
for i in range(1,11300):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
pen.hideturtle()
turtle.done()
\ No newline at end of file
import random
import random
play=input("请出拳(o/v/w):")
print("玩家出拳:"+play)
\ No newline at end of file
i=10
i=10
username = 'qwert'
userpassword='1234'
while True:
if i =0:
name = input("请输入用户名")
password=input("请输入密码")
i-=1
if name=password and password = name:
print("登路成功!")
break
if name !=username:
print("用户名错误,请重新输入!")
continue
if password != userpassword:
print("密码错误,请重新输入!")
else:
print("你的账号被锁定")
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