???????????????????????????????е??????????????????????UI?????????????????????????????ɡ?
???????????????????????????????????????????е????????
????????UI????????????????????????????????е?????????????д??????????????????????????????Ч???
??????????????????????????ɡ?
??????????
??????Σ???????“??????”??????????е????????????????ζ??????????????????????????????????????????Ч????????????
??????????????????????????γ?????????裬?????д??????????????????????????????п???????????????????????????????????????????У?????ü?????????У???????????????
???????????????????????????????????????????????????????????á?
???????????????
?????????????????????????????????????????ɡ?
?????????£????????Python?????????????????
????· ????????????????????????????
????· ???????????????????????????????????????г???????????
????· ?????????????????????????д??????????Ч????
????· Python??????????????????????C#??java??????á?
???????????
?????????????ɡ?
?????????????????
????????????????????????????????????????????????е??????????
?????????????????~
??????????????FTP???????????????????????????????????????????????
??????????????д??????ɡ?
????sftp = SFTPClient(host="192.168.1.10"?? port=22?? user="root"?? pwd="XXXXXX")
????print "??????????????{}".format(sftp.get_file_update_time(path='/data/www/sg/sg_dev/socket/conf/config/treasure'))
????sftp.close()
????SFTPClient
????????????SVN??
??????2???????SVN??????????????????????????????????????????????????Revert????Update??
???????????????д????????????????
#! /usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import subprocess
subprocess.Popen(r'TortoiseProc.exe /command:revert /path:"E:??????" /closeonend:0'.encode('gb2312'))
subprocess.Popen(r'TortoiseProc.exe /command:revert /path:"E:???????" /closeonend:0'.encode('gb2312'))
subprocess.Popen(r'TortoiseProc.exe /command:update /path:"E:??????" /closeonend:0'.encode('gb2312'))
subprocess.Popen(r'TortoiseProc.exe /command:update /path:"E:???????" /closeonend:0'.encode('gb2312'))