liuwei0773

1、创建文件~/.pythonrc,内容如下:

# ~/.pythonrc
# 启动代码补全
try:
  import readline
except ImportError:
  print("Module readline not available.")
else:
  import rlcompleter
  readline.parse_and_bind("tab: complete")

 

2、在 ~/.bashrc 文件中添加:

export PYTHONSTARTUP=~/.pythonrc

 

3、注销重新登录即可。

分类:

技术点:

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2021-11-17
  • 2021-11-17
  • 2021-06-25
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-06-13
相关资源
相似解决方案