Commit b9510430 by BellCodeEditor

save project

parent 918fa26e
Showing with 34 additions and 8 deletions
......@@ -5,15 +5,11 @@ while True:
password=input("请输入用户密码")
if name==username and password==userpassword:
print("登陆成功")
break
if name !=username:
print("用户名错误,请重新输入")
continue
if password != userpassword:
print("密码错误,请重新输入")
break
print("抱歉,用户名和密码错误请重新输入")
print("欢迎来到贝尔编程")
# 请用input()实现用户输入账号、密码的功能
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
print("欢迎来到贝尔编程")
\ No newline at end of file
'''word = 'China'
num=3
string='python'
total=string*(len(word)-num)
print(total)'''
'''t1=(1,2,3,4,5,6,7)
t2=("a","b","c","d","e","f")
a1=t1[2:]
a2=t2[2:5]
s=a1+a2
print(s)'''
'''numbers=[1,3,2,8,9]
print(numbers[1]+numbers[3])'''
#courses=["语文","数学","编程","英语"]
#courses.pop()
'''import turtle
turtle.pencolor("red")
turtle.pensize(2)
turtle.circle(100)
turtle.left(90)
turtle.forward(200)
turtle.forward(-100)
turtle.left(90)
turtle.forward(100)
turtle.forward(-200)
turtle.done()'''
n=int(input("请输入奶牛的头数"))
a=n*20*7
print(n,"头奶牛7天可以产",a,"千克的牛奶")
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