Return a new string with backslashes in str replaced by two backslashes, and double quotes replaced by backslash-double quote. 文字列 str 内のバックスラッシュを バックスラッシュ2つ に置換した新しい文字列を返します。 また、ダブルクォートは バックスラッシュ + ダブルクォートに置換されます。 - Python
Return a new string with backslashes in str replaced by two backslashes and double quotes replaced by backslash-double quote. str 中のバックスラッシュが 2 つのバックスラッシュに置き換えられ、二重引用符がバックスラッシュ付きの二重引用符に置き換えられた、新たな文字列を返します。 - Python
Split a string up according to Unix shell-like rules for quotes and backslashes. 文字列をUnixのシェルのようなルール(引用符やバックスラッシュの扱い)で分割します。 - Python
To nest when using the backquoted form, escape the inner backquotes with backslashes.
バッククォート形式の時に入れ子を行うには、内側のバッククォートをバックスラッシュでエスケープします。 - JM
Useful when arguments might contain white space, quote marks, or backslashes.
入力される文字列に空白・引用符・バックスラッシュが含まれている場合に有用であろう。 - JM
As a result, uXXXX escape sequences are only recognized when there are an odd number of backslashes. その結果、uXXXX エスケープシーケンスは、バックスラッシュが奇数個連なっている場合にのみ認識されます。 - Python
The name will be translated to lower case and double quotes and backslashes in the value have been interpreted. name は小文字に変換され、value 内のエンティティ参照は変換されます。 二重引用符やバックスラッシュは変換しません。 - Python
(Splitting the string is done similarly to how Unix shells operate: words are delimited by spaces, but quotes and backslashes can override this. (文字列の分割は Unix のシェルが行うものに似ています: 単語はスペースで区切られますが、クォートとバックスラッシュでオーバーライドできます。 - Python
Indentation cannot be split over multiple physical lines using backslashes; the whitespace up to the first backslash determines the indentation. バックスラッシュを使ってインデントを複数の物理行に分割することはできません; 最初のバックスラッシュまでの空白がインデントを決定します。 - Python
This module provides the TextFile class, which gives an interface to text files that (optionally) takes care of stripping comments, ignoring blank lines, and joining lines with backslashes.
これはテキストファイルへのインタフェースを提供し、コメントの削除、空行の無視、バックスラッシュでの行の連結を任意に行えます。 クラスTextFile - Python
This feature can be used to reduce the number of backslashes needed, to split long strings convenientlyacross long lines, or even to add comments to parts of strings, for example: この機能を使うと、長い文字列を分離して、複数行にまたがらせる際に便利です。 また、部分文字列ごとにコメントを追加することもできます。 - Python
Xrdb strips trailing white space from resource values, so to add spaces at the end of the prompt (usually a nice thing), add spaces escaped with backslashes. xrdbはリソースの値の末尾の空白文字を取り除き、プロンプトの末尾に空白を追加し(普通はこれで良い)、バックスラッシュでエスケープした空白を追加する。 - XFree86
It is also important to note that the escape sequences marked as ``(Unicodeonly)'' in the table above fall into the category of unrecognizedescapes for non-Unicode string literals.When an "r" or "R" prefix is present, a character following a backslash is included in the string without change, and all backslashes are left in the string. 接頭文字 "r" または "R" がある場合、バックスラッシュの後にくる文字はそのまま文字列中に入り、バックスラッシュは全て文字列中に残されます。 - Python
If you continue a line via backslashing in an interactive session,or for any other reason use a backslash, you should use a rawdocstring, which will preserve your backslashes exactly as you type them: 対話セッションにおいて、バックスラッシュを用いて次の行に続ける場合や、その他の理由でバックスラッシュを用いる場合、raw docstring を使ってバックスラッシュを入力どおりに扱わせるようにせねばなりません: - Python
For example, the string literalur"u0062n" consists of three Unicode characters: `LATINSMALL LETTER B', `REVERSE SOLIDUS', and `LATIN SMALL LETTER N'.Backslashes can be escaped with a preceding backslash; however, bothremain in the string.
例えば、文字列リテラルur"u0062n" は、3つの Unicode 文字: `LATIN SMALL LETTER B' (ラテン小文字 B)、`REVERSE SOLIDUS' (逆向き斜線)、および `LATIN SMALL LETTER N' (ラテン小文字 N) を表します。 バックスラッシュの前にバックスラッシュをつけてエスケープすることはできます; しかし、バックスラッシュは両方とも文字列中に残されます。 - Python
Note also that a single backslash followed by a newline is interpreted as those two characters as part of the string, not as a line continuation.When an "r" or "R" prefix is used in conjunction with a "u" or "U" prefix, then the uXXXX escape sequence is processed while all other backslashes are left in the string. また、バックスラッシュの直後に改行がきても、行継続を意味するのではなく 、それら二つの文字として解釈されるので注意してください。 "r" および "R" 接頭文字を "u" や"U" と合わせて使った場合、uXXXX エスケープシーケンスは処理されますが、その他のバックスラッシュはすべて文字列中に残されます 。 - Python
String quotes can be escaped with a backslash, but the backslash remains in the string; for example, r""" is a valid string literal consisting of two characters: a backslash and a double quote;r"" is not a valid string literal (even a raw string cannot end in an odd number of backslashes). 引用符はバックスラッシュでエスケープすることができますが、バックスラッシュ自体も残ってしまいます; 例えば、r""" は不正でない文字列リテラルで、バックスラッシュと二重引用符からなる文字列を表します; r"" は正しくない文字列リテラルです (raw 文字列を奇数個連なったバックスラッシュで終わらせることはできません)。 - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.
Copyright (c) 2001 Robert Kiesling. Copyright (c) 2002, 2003 David Merrill. The contents of this document are licensed under the GNU Free Documentation License. Copyright (C) 1999 JM Project All rights reserved.