获取文件路径,返回文件大小

import os
def file(size):
    size_ = os.path.getsize(size)
    return size_

a = '../day7/test'
i = file(a)
print(i)
;