Python 爬虫
M4chael1
这个作者很懒,什么都没留下…
展开
-
Python爬虫 第二讲
for循环 name = 'neusoft' for x in name: print(x) if x == 's': print('哈哈') # 结果 >>> n e u s 哈哈 o f t 进度条 使用 pip install tqdm 安装tqdm库 导入 tqdm 库和 time 库 from tqdm import tqdm import time mylist = [] for i in range(20): mylist.appe原创 2021-04-07 10:37:49 · 146 阅读 · 0 评论 -
Python爬虫 第一讲
Python环境安装 Python解释器的安装 PyCharm的安装 Python基础 1. 输入输出语句: 输出*print()*是一个python内置函数,可以直接输出括号里的对象。 print('hello') #结果 >>> hello *print()*也可以打印多个字符串 age = 1 name = "李白" school = "沈阳工学院" print(name, age, school) #用逗号隔开 #结果 >>> 李白 1 沈阳工学院 输入原创 2021-04-07 10:34:10 · 105 阅读 · 0 评论