Commit 089e104c by BellCodeEditor

auto save

parent 3a3cbb9d
Showing with 42 additions and 0 deletions
a=list(input("输入字符串:"))
while True:
for i in range(len(a)):
if a[i]>='0' and a[i]<='9':
a.pop(i)
break
else:
print(a)
\ No newline at end of file
user='python'
password='12345'
while True:
a=input("输入用户名:")
b=input("输入密码:")
if user==a and password==b:
print("登录成功!")
break
if user!=a:
print("用户名错误!")
continue
if password!=b:
print("密码错误!")
continue
# a='dfds'
# b='d'
# print(a-b)
# a=[1,2,3,4,5]
# a.sort(reverse=True)
# print(a)
# a={'a':123,'b':345,'c':456}
# b=a{,}
# print(b)
from copy import deepcopy
a={'a':123,'b':345,'c':456}
b=a
c=deepcopy(a)
a['a']=678
print(a)
print(b)
print(c)
\ 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