diff --git a/index.html b/index.html index 61227bca..1a67f48c 100644 --- a/index.html +++ b/index.html @@ -184,6 +184,22 @@ big { # Output: ['a', 'b'] ``` +
+ ### 文件中读入的字符莫名消失 + + 复现代码 + + ```python + raw = '第一行\n\r第二行' + + for i in raw.split('\n'): + print('---start', i, 'end---') + + # Output: + # ---start 第一行 end--- + # 第二行 end--- + ``` +
GOOD @@ -229,7 +245,7 @@ big { #### 没人知道这个变量是什么 - a, b, j, k, l - - str, string + - str, string, number, list, dict - data - data1 - data114514 @@ -279,6 +295,13 @@ big { 例如某个 `check_empty_in_list()`,按字面意思会检查列表中是否有空项,可这个函数在检查到空项的同时还会「智能地」帮你删掉空项。然而使用函数的人对此一无所知,函数作者也忘了有这么回事。
+
+

一行!展现你的聪明才智!

+ + + result = not os.system(' '.join(['proxychains', '-q', 'pandoc', 'README.md', 'SUMMARY.md', ' '.join([str(i)+'.md' for i in range(3, 109+1)]), '-o', '/tmp/out.epub']) or print("Failed") + +