[root@localhost src]# python3
Python 3.7. (default, Feb , ::)
[GCC 4.8. (Red Hat 4.8.-)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> dede^[[D^[[D^[[D^[[C^[[C^[[C^[[C^[[C^[[C^[[C
File "<stdin>", line
dede
^
SyntaxError: invalid syntax
>>> ^[[C
File "<stdin>", line ^
SyntaxError: invalid syntax
>>>
>>>
>>> sudov^H^H^H^H^H^H^H^H^H^H^H
File "<stdin>", line
^
SyntaxError: invalid syntax
>>>
>>> exit()
安装
yum -y install readline-devel
然后重新编译安装python3:
https://www.cnblogs.com/sea-stream/p/10388318.html
参考:
https://blog.csdn.net/u012063703/article/details/50460107
https://www.cnblogs.com/xiaoguozi0218/articles/8304005.html
https://www.cnblogs.com/tssc/p/7762998.html
https://blog.csdn.net/qq_39996858/article/details/82887469