Python for / if constructs

后端 未结 0 1652
一向
一向 2020-11-30 16:43

why do neither of these work as a loop construct

for x in text.lower() if x.isalpha():
for x in text.lower() if x.isalpha()

when this works j

相关标签:
回答
  • 消灭零回复
提交回复
热议问题