1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-09-22 15:41:43 +02:00
This commit is contained in:
Chao Zhang 2019-11-01 11:53:30 -03:00 committed by GitHub
commit 82129598f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
README.md vendored
View File

@ -702,7 +702,7 @@ SyntaxError: invalid syntax
--- ---
### ▶ Half triple-quoted strings ### ▶ Half triple-quoted strings (which is wrong in original version)
**Output:** **Output:**
```py ```py
@ -714,7 +714,8 @@ wtfpython
>>> # print('''wtfpython') >>> # print('''wtfpython')
>>> # print("""wtfpython") >>> # print("""wtfpython")
``` ```
(by zc_):
in fact, `print wtfpython'` will not raise Error, it will wait you to enter another `'''` as the end of multi-line string.
#### 💡 Explanation: #### 💡 Explanation:
+ Python supports implicit [string literal concatenation](https://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation), Example, + Python supports implicit [string literal concatenation](https://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation), Example,
``` ```