def conversionFace(strs):
def Q2B(uchar):
"""单个字符 全角转半角"""
inside_code = ord(uchar)
inside_code = 0x0020 if inside_code == 0x3000 else inside_code - 0xfee0
return uchar if inside_code < 0x0020 or inside_code > 0x7e else chr(inside_code)
return "".join([Q2B(i) for i in strs])
05-08
4233
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)