我正在嘗試運行此代碼:!git clone https://github.com/sorki/python-mnist!./python-mnist/get_data.sh!pip3 install emnistfrom emnist import extract_training_samples但是會出現以下錯誤信息:Traceback (most recent call last): File "/Users/silteliz/Desktop/Solo Learn Python/NN 1.py", line 1 !git clone https://github.com/sorki/python-mnist ^SyntaxError: invalid syntax我有 Python 3.8。有誰知道問題可能是什么?
1 回答

BIG陽
TA貢獻1859條經驗 獲得超6個贊
只有在使用 時才能!
使用ipython
,例如在 Jupyter Notebook 或 PyCharm 的控制臺中,如果您啟用ipython
為默認控制臺界面。如果不是這種情況,請刪除!
并將其余代碼寫入cmd
.
添加回答
舉報
0/150
提交
取消