Commit d6d54859 by BellCodeEditor

auto save

parent 9441c4b3
Showing with 47 additions and 15 deletions
def dd(d):
for i in range(0,len(d)-1):
for j in range(i+1,len(d)):
if d[i]<d[j]:
d[i],d[j]=d[j],d[i]
b=len(d)-1
d[b]=d[b]+1
print(d)
dd([])
\ No newline at end of file
while True:
x=input("x=")
a=len(x)
b=a//2
for i in range(b):
if x[i]==x[a-i-1]:
c=1
else:
c=0
if c==1:
print("true")
else:
print("false")
\ No newline at end of file
username = "python"
userpassword = "123456"
while True: while True:
if i>0: x=input("x=")
name = input("请输入用户名:") a=len(x)
password = input("请输入密码:") b=a//2
if name != username: for i in range(b):
print("重输") if x[i]==x[a-i-1]:
elif password != userpassword: c=1
print("重输") else:
else name == username and password == userpassword: c=0
break if c==1:
print("登录成功!") print("true")
print("用户名和密码错误!请重新输入")
else: else:
exit() print("false")
print("欢迎来到贝尔编程!")
def dd(d):
for i in range(0,len(d)-1):
for j in range(i+1,len(d)):
if d[i]<d[j]:
d[i],d[j]=d[j],d[i]
b=len(d)-1
d[b]=d[b]+1
print(d)
dd([1,5,9,3,6])
\ 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