我正在尝试使用 GitPython 对存储库进行浅/部分克隆。
这是 git CLI 命令:
$ git clone -v --filter=tree:0 --filter=blob:none --sparse git@gitlab.com:gitlab-org/gitlab-docs.git ./Projects/
Cloning into './Projects'...
remote: Enumerating objects: 4145, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (64/64), done.
remote: Total 4145 (delta 7), reused 64 (delta 7), pack-reused 4074
Receiving objects: 100% (4145/4145), 1.30 MiB | 2.89 MiB/s, done.
Resolving deltas: 100% (424/424), done.
remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (14/14), done.
remote: …Run Code Online (Sandbox Code Playgroud) 我想了解有什么value_in_dictionary % dictionary作用。
我试过
values = {
'hello':'world',
'hello2':'world2',
}
value = 'world'
print(value % values)
Run Code Online (Sandbox Code Playgroud)
这打印
world
Run Code Online (Sandbox Code Playgroud)