//命令行运行命令
python .\hello.py
# find_all(标签、属性、递归、文本、限制、关键词)
find_all(tag, attributes, recursive, text, limit, keywords)
#写入文件内容
fo = open("./download/immooc.html", "a+", encoding='utf-8')
fo.write(r.text)
#二进制文件存储
fo = open("./download/", "wb")
fo.write(r.content)
# 判断目录是否存在
isExist = os.path.exists(mkdir_img)
if isExist == False:
os.mkdir(mkdir_img)
# 获取当前地址
os.getcwd()
# D:\Python\pythonspider
持续更新。。。