Python_如何打印中文

學習了print("Hello Python world"),但是如何打印中文呢? 直接print(「你好,Python」),控制檯報警內容: 網上搜索後,修改爲如下: # -*- coding:UTF-8 -*-  ###測試python輸出中文是否亂碼  import json    print u'哈哈你好'  string='哈哈你好'  print string.decode('UTF-
相關文章
相關標籤/搜索