如果if比较的一方是中文字符,

需要import sys

然后

python len()中文字符 python中中文字符_python len()中文字符