Commit cbc55c40 by BellCodeEditor

save project

parent 42c8d91e
bros=["刘备","关羽"","张飞"]
broe=["刘备",161,9.1]
broe=["关羽",160,8.5]
bros=["张飞",166,8.3]
bros[0]=["关羽"] bros[1]=["刘备"]
username = "python"
userpassword = "123456"
i=3
while True:
if i>0:
name = input("请输入账号:")
password = input("请输入密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
elif name != username:
print("账号错误!还有"+str(i)+"次机会!")
else:
print("密码错误!还有"+str(i)+"次机会!")
else:
print("以锁定!请到我司解索!")
exit()
print("欢迎来到贝尔编程!")
\ No newline at end of file
n=int(input("请输入一个正整数:"))
n=int(input("请输入一个正整数:"))
a=0
while a+2<=n:
a+=2
print(a)
\ No newline at end of file
str=input("请输入五个以上的正整数:")
str=input("请输入五个以上的正整数:")
nums=eval(str)
lst=list(nums)
lst.sort()
for i in lst:
print(i,end=" ")
\ No newline at end of file
a=int(input("输入加数:"))
a=int(input("输入加数:"))
b=int(input("输入加的次数:"))
c=a*pow(10,b-1)
s = 0
for i in range(b):
s+=c*(i+1)
c/=10
print(int(s))
++ "b/\345\210\230\347\235\277\347\201\217005.py"
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