我有一个多行字符串文字,我想在每一行上执行一个操作,如下所示:
inputString = """Line 1
Line 2
Line 3"""
我想做以下事情:
for line in inputString:
doStuff()
杨魅力
猛跑小猪
相关分类