import numpy as np def main(): from scipy.integrate import quad,dblquad print(quad(lambda x:np.exp(-x),0,np.inf)) if __name__ == '__main__': main()
#ModuleNotFoundError: No module named 'scipy.integrate'; 'scipy' is not a package
先导入scipy呢