如何使用 git clone 代码解决语法错误?

1 git command-line python-idle python-3.x

我是 python 初学者,在运行以下命令时遇到问题:

git clone https://github.com/marksgraham/OCT-Converter.git
Run Code Online (Sandbox Code Playgroud)

( https://github.com/marksgraham/OCT-Converter )

我已经在我的 Mac 上安装了 Python 3.7.4 并绑定到在 IDLE 中运行它。但它说“SyntaxError:无效语法”关于“克隆”。我是否需要先安装其他东西才能运行它?

小智 6

你只需要'!' 命令前

你的命令是这样的,

!git clone https://github.com/marksgraham/OCT-Converter.git
Run Code Online (Sandbox Code Playgroud)

注意:如果您使用 anaconda navigator 或 googlecolab