01 2023 档案
摘要:1. 添加多个远程仓库,单独push/pull 在添加的原有 origin 远程仓库之后,添加 mirror 远程仓库 git remote add mirror https://url2.com/my_repo.git 对应 .git/config [core] repositoryformatv
阅读全文
摘要:装饰器:本质是一个闭包 作用:在不改变原有函数调用的情况下,给函数增加新的功能 def wrapper(fn): wrapper: 装饰器, fn: 目标函数 def inner(*args, **kwargs): # 在目标函数执行之前... ret = fn(*args, **kwargs) 执
阅读全文