比如我有个demo.py的文件,我想把它重命名为test.py
右键点击需要更改的文件,找到Refactor、Rename
pycharm中的py文件重命名
原文:https://www.cnblogs.com/cyx-b/p/12907725.html