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)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-12-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
相关资源
相似解决方案