以前都是些shell,写python需要一些习惯,下面是python的字符串拼接
#!/usr/bin/python
# -*- coding: utf-8 -*-
import time
import shutil,os
uptime = time.strftime("%Y%m%d")
path = "/var/tmp/cslc/aw/backup/"
uppath = path+uptime
oripath = "/var/tmp/cslc/aw/war/"
bakpath = "/var/tmp/cslc/aw/update/"+uptime+"/aw.war"
#print(uppath)
#print(bakpath)