qpython has no 'gnu-readline' capability

对着背影说爱祢 提交于 2019-12-11 00:13:39

问题


I've installed qpython on my Samsung Galaxy Appeal (android 2.3.6), but the interpreter's commandline has no 'readline' editing capability, which makes it impractical to use. Isn't this usually included automatically? Does this have something to do with the currently active Shell? I've never understood how to add readline to Python (it's not just a matter of importing a module).


回答1:


I'm assuming that you mean QPython cannot understand input or raw_input statements. I'm not an experienced programmer, so please correct me if I'm wrong. But the problem was solved on my mobile by adding these lines of code at the beginning of my script:

#-*-coding:utf8;-*-
#qpy:console
#qpy:2


来源:https://stackoverflow.com/questions/27911116/qpython-has-no-gnu-readline-capability

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!