python语法错误:无效语法文件“<string>”,第1行

2024-05-17 03:19:51 发布

您现在位置:Python中文网/ 问答频道 /正文

当我执行

python3 -c "import zipfile; zipfile.ZipFile("shadowsocks-master.zip", "r").extractall("/root")"

会有错误的

enter image description here 但是如果我在python提示符中执行命令,就完全可以了

enter image description here

我完全迷路了


Tags: importmastershadowsocks错误rootzip执行命令python3