li = ["alex"," aric","Alex","Tony","rain"]
for i in li:
new_li = i.strip()
if (new_li.startswith(‘a‘) or new_li.startswith(‘A‘)) and new_li.endswith(‘c‘):
print(new_li)
原文地址:https://www.cnblogs.com/wssaried/p/9862676.html
时间: 2024-11-19 00:38:23