没有eval的Python变量?在python中有没有使用变量字符串访问变量的方法?例如,我希望有一种比使用eval更简洁的方法: def toggleListButtons (self): buttons = ["flip ...2024-06-26 已阅读: n次