0
我正在使用Python Markdown來解析下表。解析Python標記中的表時出現Unicode錯誤
Escape sequences | Character represented
-----------------|--------------------------
\b | Backspace
\t | Tab
\f | Form feed
\n | New line
\r | Carriage return
\\ | Backslash
\' | Single quote
\" | Double quote
\uNNNN | where NNNN is a unicode number, with this escape sequence you can print unicode characters
這裏是我使用
html = markdown.markdown(str, extensions=['markdown.extensions.tables', 'markdown.extensions.fenced_code',
'markdown.extensions.toc', 'markdown.extensions.wikilinks'])
print(html)
的代碼,這裏是錯誤
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1000-1001: truncated \uXXXX escape