在python文件中执行另一个python文件

在一个python文件中执行另一个python文件:

import os

def fun():
os.system("python filename.py")
fun()

你可能感兴趣的:(python)