File->setting->Editor->General->Appearance,勾选Show line numbers

PyCharm如何设置显示行号?

相关文章: