数据页是一个excel?
这个数据直接用python的pandas模块处理还是比较简单的
from datetime import date
import pandas as pd
df = pd.read_excel('aa.xls')
print(df)
df['成本价'] = df['成本价'].map( lambda x: round( x * 1.05, 2 ) ) #这各是结果保留两个小数
df['销售价'] = df['销售价'].map( lambda x: round( x * 1.1, 2 ) )
print('========')
print(df)
df.to_excel('bb.xls',sheet_name=str(date.today()),encoding='utf-8')