from os import getcwd
def GenerationCommand(gitaddress,path=getcwd(),newname='the_file_come_from_git_hub'):
'''
github的克隆函数
:param gitaddress: ->文件地址
:param newdirname: -> 新文件名
:param path: ->预备存放文件的地址
:return:
'''
CommandStrings = 'git clone ' + gitaddress +' '+ repr(path) +'/'+ repr(newname)
#'git clone '+str(gitaddress)+path+str(+newdirname)
__import__('os').system(CommandStrings)
if __name__ == '__main__':
python_master_address = 'https://github.com/TheAlgorithms/Python.git'
P = 'git://github.com/danielfrg/pelican-ipynb.git'
l = 'https://github.com/iamcrj/Multiple_Linear_Regression.git'
lr = 'https://github.com/YEN-GitHub/MachineLearning_BasicAlgorithm.git'
ss ='https://github.com/chengdeccw/Machine_learning_algorithm.git'
path = getcwd()
s1 = 'https://github.com/chiphuyen/python-is-cool'# 英伟达小姐姐的代码
'''git hub 的 python算法克隆'''
GenerationCommand(gitaddress=s1,path=path,newname='英伟达小姐姐的代码').__repr__()
'''中文注释的及其学习算法'''
git工具
最新推荐文章于 2022-11-20 20:33:11 发布