buaa21 / summer2020

软件学院《程序设计实践》2020小学期仓库
40 stars 8 forks source link

Python 出现 a Null character was found in the text错误 #185

Closed xiazaiba7 closed 3 years ago

xiazaiba7 commented 3 years ago

Python 出现 a Null character was found in the text错误。之前已经实现好了文本输入框,现在不知道为什么又出现这个错误了

PineZhuo commented 3 years ago

试试文本输入框在输入的时候判断一下字符类型,不符合类型直接抛给用户让他重新输入,或者抛异常