python中img.clone报错

Python018

python中img.clone报错,第1张

代码错误问题。python是由荷兰数学和计算机科学研究学会的吉多范罗苏姆于1990年代初设计的一款编程语言。用户在使用该语言进行编程时,若出现imgclone的结果,是因为代码错误问题导致的,可以重新检查一下代码,更改错误即可解决问题。

直接执行

下面是一种解决方案

1 把gitbash 的路径放到系统的Path环境变量里 我的是 C:\Program Files (x86)\Git\bin

2 这时候 你在系统命令行里就可以用git了

3 在python里倒入 os 模块 然后执行

os.system('git') 就可以了

C:\Users\Administrator>python

Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win3

Type "help", "copyright", "credits" or "license" for more information.

>>> import os

>>> os.system('git')

usage: git [--version] [--help] [-C <path>] [-c name=value]

           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]

           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]

           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]

           <command> [<args>]

The most commonly used git commands are:

   add        Add file contents to the index

   bisect     Find by binary search the change that introduced a bug

   branch     List, create, or delete branches

   checkout   Checkout a branch or paths to the wo