标签:set span import -- sys.path request pat 模块安装 app
调用模块
import s4
import lib.commons
s4.login()
lib.commons.f1()
调用文件下自定义模块
from lib import commons as lib_commons
from src import commons as rec_commons
导入e盘下的模块
import sys
sys.path.append(‘E:\\‘)
import tets
查看默认模块路径
import sys
for item in sys.path:
print(item)
pip 安装模块
pip3 install requests
源码模块安装
cd E:\kennethreitz-requests-v2.10.027-g8813787\kennetheritz-r
python3 setup.py install
import requests
函数递归
def d():
a = print(123)
return a
def c():
r = d()
return r
def b():
r = c()
return r
b()
def func(n):
n += 1
if n >=4:
return "no"
return func(n)
r = func(1)
print(r)
标签:set span import -- sys.path request pat 模块安装 app
原文地址:http://www.cnblogs.com/hanwei999/p/6155987.html