How does pycharm modify variable names in batches [Solved]

What should I do if I want to modify the variable name when writing code?

A lot of codes have been written, and the cvs one by one are very slow, so you can modify them uniformly!

The blogger wants to change flower_class to minst_class

1. Find the location of the variable definition

2. Right click ➡ Refactor ➡ Rename, or shift+F6

 

3. Tap the new variable name in the red box

 4. Enter to confirm

 

 In this way, the batch replacement of variable names is successful!

 

Guess you like

Origin blog.csdn.net/qq_43604183/article/details/127985388