我正在尝试获取标签的日期。cmd
我知道的命令是:
p4 labels -e the_label_name
的确给我以下内容:
Label the_label_name 2014/06/05 00:05:13 'Created by mebel. '
要使用python,我写道:
os.system("sc labels -t -e the_label_name")
我得到的是:
Label the_label_name 2014/06/05 00:05:13 'Created by mebel. '
0
但是,如果我写
label = os.system("sc labels -t -e the_label_name")
我明白了
label = 0
你知道我在想什么吗?
我找到了这个:
label = os.popen("sc labels -e the_label_name")
label = label.read()
固定一切...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句