Commit a269f0c3 by BellCodeEditor

auto save

parent 4ce966e1
Showing with 40 additions and 0 deletions
username = "python"
userpassword = "123456"
i=3
while True:
if i>=1:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username:
if password == userpassword:
print("登录成功!")
else:
print("密码错误!请重新输入")
else:
print("用户名错误!请重新输入")
else:
print("您的账号已锁定,请您到我公司柜台解锁")
exit()
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ No newline at end of file
import random
p=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
i=random.choice(p)
print(i)
\ No newline at end of file
import turtle#加载turtle功能
pen=turtle.Pen()#定义画笔
screen=turtle.Screen()#定义画布
screen.bgcolor("pink")
pen.forward(200)#画笔向前走200步
ok=input("你想画多大圆")#
okk=int(ok)
pen.circle(okk)
import random
p=[50,100,150,200]
pen.circle(random.choice(p))
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