From e4268d1c6f8cf9e352ec37ffb2bfe9248dde5f2d Mon Sep 17 00:00:00 2001 From: Chao Zhang <313249726@qq.com> Date: Mon, 3 Dec 2018 11:51:21 +0800 Subject: [PATCH] Update README.md fix bug: `'''` means multi-line output in print function --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9b9563..fb468a1 100644 --- a/README.md +++ b/README.md @@ -700,7 +700,7 @@ SyntaxError: invalid syntax --- -### ▶ Half triple-quoted strings +### ▶ Half triple-quoted strings (which is wrong in orinial version) **Output:** ```py @@ -712,7 +712,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, ```