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'