Commit 7ddb9cdc authored by 高雅喆's avatar 高雅喆

pretty output

parent 8746e9ab
......@@ -16,7 +16,8 @@ def get_yesterday_date():
def result2file(fpath):
with open(fpath,'w') as f:
tplt = "{0:\u3000<6}\t{1:\u3000<15}\t{2:\u3000<15}\t{3:\u3000<15}\n"
line = """内容概览:以下所有数据都是首页的
line = """数据日期:{}
内容概览:以下所有数据都是首页的
1. 比例特征
1.1 answer曝光占比(=answer被曝光数/总cid被曝光数)
1.2 活跃用户点击率(=活跃用户点击次数/活跃用户曝光次数)
......@@ -32,7 +33,7 @@ def result2file(fpath):
具体内容:以下所有数据都是首页的
"""
""".format(get_yesterday_date())
f.write(line)
f.write("#1. 比例特征\n")
f.write("=================================================================\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment