在input 中text 是不能用回车之类的动作换行的

只能通过软换行比如:

text1.text=text1.text+chr(10)+chr(a3)

或者

换行处加上<br>

或者

用\n

不同的地方用的换行符不同