Commit 9def3c36 by BellCodeEditor

auto save

parent f3b0ced6
Showing with 54 additions and 15 deletions
username="swjmt"
password="12345"
cishu=5
while True:
if cishu>0:
print("你还有",cishu,"次🐔会")
username_in=input("请输入你的用户名")
password_in=input("请输入你的密码")
cishu = cishu-1
if username_in=="q":
break
if username==username_in:
print("用户名正确")
if password==password_in:
print("密码正确,欢迎来到老八系统")
else:
print("密码错误")
else:
print("用户名错误")
else:
print("你的账号已被冻结")
\ No newline at end of file
a=input("请输入你的鞋码")
a=int(a)
print("你的脚长是:",(a+10)/2,"厘米")
\ No newline at end of file
a=input("输入乌龟的速度")
a=int(a)
print("乌龟追上兔子的时间是:",100/a,("秒"))
\ No newline at end of file
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
# 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
# bro1="关羽"
# bro2="刘备"
# bro3="张飞"
bros=["刘备","关羽","张飞","刘备"]
# bro1=["关羽",160,8.5]
# bro2=["刘备",161,9.1]
# bro3=["张飞",166,8.3]
# bros[0]="关羽"
# bros[1]="刘备"
bros.remove("刘备")
print(bros)
\ No newline at end of file
username = "td"
password = "00"
x = 1
while True:
if x > 0:
print("您还有",x,"次机会")
username_in = input("请输入你的用户名")
password_in = input("请输入你的密码")
x = x - 1
if username == username_in:
print("用户名正确")
if password == password_in:
print("密码正确")
break
else:
print("密码错误,请重新输入")
else:
print("该用户名不存在,请重新输入")
print("请重新输入你的用户名和密码")
else:
print("无")
exit()
print("欢迎来到td系统")
\ 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