第一次玩python,真的发现它在文本处理方面太太太强大了。

 

for line in open("f:/file.txt"):
    
for word in line.split():
        
if word.endswith('ing'):
            
print word

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2021-01-03
  • 2021-06-24
  • 2021-09-17
  • 2021-06-02
  • 2022-01-11
猜你喜欢
  • 2021-04-26
  • 2021-08-31
  • 2021-09-10
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案