摘要: value1 value2 test11 test21 test12 test22 阅读全文
posted @ 2021-09-12 18:11 Szblog 阅读(21) 评论(0) 推荐(0)
摘要: 今日内容: #作业 from pymongo import MongoClient import requests from bs4 import BeautifulSoup client = MongoClient('localhost',27017) index_col = client['wa 阅读全文
posted @ 2019-06-22 00:13 Szblog 阅读(155) 评论(0) 推荐(0)
摘要: 今日内容: from selenium import webdriver from selenium.webdriver import ActionChains import time from PIL import Image import random def cut_image(driver) 阅读全文
posted @ 2019-06-21 15:56 Szblog 阅读(149) 评论(0) 推荐(0)
摘要: 今日内容: ''' Xpath语法 ''' from selenium import webdriver driver = webdriver.Chrome() try: # 隐式等待:卸载get请求前面 driver.implicitly_wait(10) driver.get('https:// 阅读全文
posted @ 2019-06-19 23:14 Szblog 阅读(136) 评论(0) 推荐(0)
摘要: 今日内容: 作业1: 作业2: 阅读全文
posted @ 2019-06-19 23:12 Szblog 阅读(151) 评论(0) 推荐(0)
摘要: 爬取豆瓣top250电影: import requests import re url = 'https://movie.douban.com/top250' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleW 阅读全文
posted @ 2019-06-17 08:34 Szblog 阅读(150) 评论(0) 推荐(0)
摘要: 学习内容: 函数的定义方式 无参函数 不需要接收外部传入的参数 def foo(): print('from foo') foo() 结果: from foo 有参函数 需要接收外部传入的参数 def login(user,pwd): print(user,pwd) login('zxy','111 阅读全文
posted @ 2019-06-17 08:31 Szblog 阅读(158) 评论(0) 推荐(0)
摘要: 学习内容: 作业 : 阅读全文
posted @ 2019-06-12 23:35 Szblog 阅读(144) 评论(0) 推荐(0)
摘要: 字符串操作: 列表操作: 结果: 作业运行截图: 阅读全文
posted @ 2019-06-11 21:56 Szblog 阅读(134) 评论(0) 推荐(0)