0
我想要構造並打印一個Unicode字符串與Python 3.x.因此,例如,以下工作正常:構建一個Unicode字符串
a = '\u0394'
print(a)
Δ
但如果我嘗試通過追加兩個字符串來構造這個,我有幾個問題:
a = '\u'
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated \uXXXX escape
a = '\\u'
b = '0394'
c = a + b
print(c)
\u4308
缺少什麼我在這裏?