在Spyder中更改变量名称

时间:2014-04-25 14:11:06

标签: python variables editor spyder

我有一个包含许多公式和变量的程序。我需要更改其中一些变量的名称。 Spyder中是否有任何命令或功能可以帮助我一步更改所有名称?

我正在寻找像Matlab的MAIUSC + ENTER这样的东西。

3 个答案:

答案 0 :(得分:7)

目前无法做到这一点。这是一个悬而未决的问题。 https://github.com/spyder-ide/spyder/issues/415

答案 1 :(得分:0)

file = open(self.file, "r")

self.text.insert("1.0", file.read())

file.close()  

enter image description here

答案 2 :(得分:0)

或者,可以使用PyCharm代替Spyder,后者已在Anaconda中得到支持。

在PyCharm中:选择变量> 右键单击> 重构> 重命名