I have a multi-line string literal that I want to do an operation on each line, like so:
inputString = """Line 1
Line 2
Line 3"""
I want to do something like the following:
for line in inputString:
doStuff()
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…