如果想区分中文和英文可以使用unicode。 中文的范围为:['/u4e00','/u9fa5']。 判断是否是全英文: #!/usr/bin/python # -*- coding: UTF-8 -*- s = u"中国" print ...
確定! 回上一頁