设置行号就很简单了,在Settings中找到Editor-Appearance,选中Show line numbers即可。 转载于:https://www.cnblogs.com/Zhanxueyou/p/Pycharm_linenumber.html