Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はPythonを初めて使用します。特殊文字(生の文字列を意味します)を考慮せずに文字列を印刷するのが好きです。
'Hello\npython\tworld'
どうすれば自分の文字列を生の文字列にすることができますか Hema に感謝します
使用repr(mystring)しますが、そのように初期化されている場合に二重引用符で印刷する場合、これは機能しません。常に一重引用符を使用します。
repr(mystring)