mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-11 14:08:53 +01:00
Merge ec5270f55c
into 8135cbb99c
This commit is contained in:
commit
82129598f2
5
README.md
vendored
5
README.md
vendored
@ -702,7 +702,7 @@ SyntaxError: invalid syntax
|
||||
|
||||
---
|
||||
|
||||
### ▶ Half triple-quoted strings
|
||||
### ▶ Half triple-quoted strings (which is wrong in original version)
|
||||
|
||||
**Output:**
|
||||
```py
|
||||
@ -714,7 +714,8 @@ 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:
|
||||
+ Python supports implicit [string literal concatenation](https://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation), Example,
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user