「Python」print()で複数行の文字列を出力するサンプル

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
str = """A001,
B002,
C003
D004."""
str = """A001, B002, C003 D004."""
str = """A001,
B002,
C003
D004."""

実行結果
A001,
B002,
C003
D004.

Python

Posted by arkgame