|
|
本帖最后由 13883743533 于 2021-9-15 11:57 编辑
楼上从网上复制的代码起码把格式给人弄好吧。
找下面这样弄,字段计算器,选python,勾上显示代码块。在预逻辑脚本代码里输入:
- def strQ2B(ustring):
- rstring = ""
- for uchar in ustring:
- inside_code=ord(uchar)
- if inside_code == 12288:
- inside_code = 32
- elif (inside_code >= 65281 and inside_code <= 65374):
- inside_code -= 65248
- rstring += unichr(inside_code)
- return rstring
复制代码
然后在要下面的框内输入代码:
注意:!QZR!是有含有全角字符的字段名,自己改。
|
|