#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
__author__ = 'Charles Guo'

'''
def change(matched):
    value = float(matched.group('value'))
    value=1.5*value/13
    return str(value)+'rem'


with open('zTreeStyle - 副本 (2) - 副本.css',"r+") as f:    #设置文件对象
    str1 = f.read()
    str1=re.sub(r"(?P<value>\d+)px",change,str1)
    f.write(str1)

'''