The policy is normal during the simulation retry, start an error report on the real disk, how to solve it?

Author: microwood, Created: 2021-12-21 19:36:02, Updated:

The written policy can be used normally on the analog disk, written in python language, error message in the real disk, error message is as follows, please how to solve? Traceback (most recent call last): File array array, line 999, ininit_ctx File “<string>”, line 43 ) -> None: ^ SyntaxError: invalid syntax


More

Black and white.You must have misspelled 43 lines.

Black and white.That's what happened.

microwoodThank you, originally it was a syntax compatibility issue between python3 and python2, python3 supports the use of -> for form defining function returns, python2 does not support