aironeng
发表于 2020-12-3 09:05:21
学习
jiayujiayu
发表于 2020-12-3 14:50:53
current_users = ['admin','Jason','Peter','WangJS','Good']
new_users = ['Jason','隔壁老王','wangjs','蔓越莓','Peter']
new = new_users[:]
current = current_users[:]
for i in range(len(current_users)):
current = current_users.lower()
new = new_users.lower()
for i in range(len(current_users)):
if new in current:
print(new_users + "已被使用")
else:
print(new_users + "未被使用")
自用化程度高
发表于 2021-9-12 15:31:34
111
sxh_nanjo
发表于 2021-9-16 16:45:14
{:5_102:}
雷锤
发表于 2021-12-1 19:00:41
current_users = ['admin','Jason','Peter','WangJS','Good']
new_users = ['Jason','隔壁老王','wangjs','蔓越莓','Peter']
for i in new_users:
if i in current_users:
print(i,'已被使用')
else:
print(i,'没被使用')
moimoi
发表于 2023-3-28 22:19:59
current_users = ['admin','Jason','Peter','WangJS','Good']
new_users = ['Jason','隔壁老王','wangjs','蔓越莓','Peter']
current=current_users[:]
new=new_users[:]
for i in range(len(current)):
current=current_users.lower()
new=new_users.lower()
print(new)
print(current)
for j in range(len(new_users)):
for i in range(len(current_users)):
if new==current:
print(new_users,'已被使用')
break
if i==len(current_users)-1:
print(new_users,'未被使用')
i+=1
j+=1
long90
发表于 2023-3-29 14:46:43
66666