How to fix column calculation in Python readline if using color prompt

后端 未结 2 1808
半阙折子戏
半阙折子戏 2020-11-30 09:47

I use standard tips for customizing interactive Python session:

$ cat ~/.bashrc
export PYTHONSTARTUP=~/.pystartup

$ cat ~/.pystartup
import os
import sys
import          


        
2条回答
  •  难免孤独
    2020-11-30 10:44

    For a better python shell experience, I'd recommend you to use either ipython or bpython.

提交回复
热议问题