其他分享
首页 > 其他分享> > 总结2

总结2

作者:互联网

li = ["TaiBai", "agree", "Abc", "egon", "riTiAn", "WuSir", "aqc"]

new_1 = []

for i in li:

  print(i)

 

 

li = ["TaiBai", "agree", "Abc", "egon", "riTiAn", "WuSir", "aqc"]

new_list = []

for i in li:

  new_i = i .strip()

  if new_i.upper().startswith('A') and new_i.endswith('C'):

    new_list.append(new_i)

for i in new_list:

  print(i)

 

16

标签:总结,Abc,list,riTiAn,li,new,egon
来源: https://www.cnblogs.com/ETH8888/p/16641664.html