尝试运行一段 python 代码时出现以下错误:
import: unable to open X server `' @ error/import.c/ImportImageCommand/366.
from: can't read /var/mail/datetime
./mixcloud.py: line 3: syntax error near unexpected token `('
./mixcloud.py: line 3: `now = datetime.now()'
编码:
import requests
from datetime import datetime,date,timedelta
now = datetime.now()
我真的缺乏看到一个问题。这是我的服务器只是遇到问题而不是代码本身的问题吗?