1, themes,

We often see a light bulb pop up in the program. What is it for?

The yellow light bulb means that Pycharm has made some suggestions for the code you are currently writing. There is nothing wrong with the program, but you can make some improvements to it, such as adding a few lines of documentation, etc. Pycharm is also used to create use sources, for example, when you use a function that does not yet exist.

The red light bulb indicates that Pycharm has detected errors in the current code and suggested fixes, such as the need to import missing third-party libraries, missing source files, and so on. Pycharm provides quick and easy error correction reminders.

Pycharm displays the various proposed changes in the suggested list, which can be opened by:

Click the bulb icon.

Press Alt+Enter.

For more information, see Intention Actions.

This post is from SDK Community (www.sdk.cn/).