LoginSignup
1
0

More than 1 year has passed since last update.

エスケープシーケンス \newline バックスラッシュと改行文字の無視ってなに?

Last updated at Posted at 2022-02-22

下記のサイトをみて、自分の中でも、あれ?と、こんがらかってしまったので、図解してメモを残します。

Pythonでの\ newlineエスケープシーケンスとはどういう意味ですか?

\newlinePythonドキュメントのエスケープシーケンスのリストでシーケンスを見つけました。それはどのように、そして何のために使われるのだろうか。少なくとも私の通訳では、これは次のように解釈されているようです'\n' + 'ewline'。

>>> print('\newline')

ewline

字句解析

エスケープシーケンス 意味 注釈
\newline バックスラッシュと改行文字が無視されます

kaigyo_01-100.jpg
kaigyo_02-100.jpg

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0