can't call onexit after executing while (true) in python language:main function

Author: fmzwing, Created: 2021-06-06 11:10:34, Updated:

Describe the title, how to solve it? is there a good way to break while (true)?


More

LEEEEEEEEOMy strategy is to add a manual control using the GetCommand () to determine if the control is triggered.

The grassBreak and return are good.