my_string = """This is my first line,
this is my second line, and...
...this is my fourth line!"""
如何將第一行(This is my first line,
)存儲到單獨的字符串中?我試圖使用.readline()
從另一個類似的問題,但是我得到這個錯誤:如何讀取字符串的第一行?
AttributeError: 'str' object has no attribute 'readline'