Python failed to execute in crontab

The problem of environment variables, in the final analysis, is the problem of character encoding. Various detours.

The method is as follows:

crontab -e

# join at the beginning

LC_CTYPE="zh_CN.utf-8"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326316527&siteId=291194637