每天python小例
郭良晨
这个作者很懒,什么都没留下…
展开
-
4每天Python小例-flask网页游戏框架#got an unexpected keyword argument
from flask import Flask, render_template, send_from_directory, jsonify,send_from_directory,request,make_response import os app = Flask(__name__) @app.route('/') def hello_world(): return render_template('index.html') @app.route('/', defaults={'pa原创 2021-06-14 21:36:35 · 972 阅读 · 1 评论 -
1每天Python小例-12306爬虫#WinError 2
注意事项:1.下载电脑对应版本的火狐驱动程序geckodriver.exe 2self.driver.visit(self.login_url)后加上 script = ‘Object.defineProperty(navigator,“webdriver”,{get:()=>undefined,});’ self.driver.execute_script(script) 不然登录界面滑动移块会报错 ...原创 2021-05-26 19:19:15 · 742 阅读 · 0 评论 -
3每天Python小例-爬取淘宝网页商品
代码是从https://github.com/gxcuizy/Python/tree/master/%E4%BB%8E%E9%9B%B6%E5%AD%A6Python-%E6%8E%98%E9%87%91%E6%B4%BB%E5%8A%A8/day21上找的 #!/usr/bin/env python # -*- coding: utf-8 -*- """ selenium模拟浏览器抓取淘宝商品信息 author: gxcuizy date: 2018-11-13 """ from selenium i原创 2021-05-28 19:32:43 · 400 阅读 · 0 评论 -
2每天Python小例-艺术字设计网站访问(含有窗口界面设计)
代码源自https://www.cnblogs.com/dongxiaodong/p/9971974.html 1.labelx=Label(rview,text=“签名”,fg=“red”,font=(“宋体”,30))中fg代表的是字的颜色; 2.buttonx=Button(rview,text=“确定”,font=(“宋体”,30),command=butonck)中command=butonck绑定的是按钮点击执行的函数 3. datax={ “word”:textx, “sizes”:原创 2021-05-27 21:26:09 · 117 阅读 · 0 评论