阅读背景:

SQLite和Python正在向数据库中插入不需要的换行符

来源:互联网 

I'm writing a little program that inserts and retrieves movie information in a database. If I type the info into the .db file manually, the program retrieves it and displays it perfectly in my GUI's textboxes. However, if I try to insert data from those textboxes into my database, it adds a linebreak to the end of each field. When I retrieve it again, it has "\n" at the end. The retrieving works great, but somehow linebreaks are being included in my inserts. Here is my insert function:I'm writing a little program that inserts and r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: