utf 8 - python print format for Chinese characters -


i working python 3.6.0 on linux (centos). python print format cannot work chinese characters. following simple codes produce unexpected wrong alignment.

tmp = '%32s  %32s' print(tmp % ('first', 'second')) print(tmp % ('第一', '第二')) 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -