如何在同一个字符串

时间:2016-04-05 19:11:50

标签: perforce p4v

这是我的命令,但我只同步一个文件。我可以用逗号分隔它们,还是有更好的方式

syncCommand = ["p4", "-c", workspace_name, "sync",  "//depot/proj1/...File1.cfg "]

例如:

def pullfile(): 
syncCommand = ["p4", "-c", workspace_name, "sync",  "//depot/proj1/...File1.cfg, File2.cfg "]

1 个答案:

答案 0 :(得分:1)

sync命令接受多个文件参数:

def pullfile(): syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg", "//depot/proj1/...File2.cfg"]