Login

I haven’t touched python for a long time

Author:neo yang Time:2021/10/25 Read: 9632

I haven’t touched python for a long time. I touched it today and made two elementary mistakes. Record it.

To execute a python file, you don't need to enter the python environment. You can directly cd into the project directory and python3 can execute the script file.

indentation. indentation. indentation.

I really don't like python.

Reminds me of a joke told by a colleague before: You have to use a ruler to measure when writing python. The indent size is wrong, no matter how correct the logic is.

tags:


copyright © www.lyustu.com all rights reserved.
Theme: TheMoon V3.0. Author:neo yang