python中pycharm中.py文件调用一个.py文件的函数 在相同文件夹内调用函数: file1.py def add(x,y): print('和为:%d'%(x+y)) file2.py import A A.add(1,2)