pu369com

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 32 下一页

2020年4月13日

python +adb控制手机自动化签到

摘要: 将之前用go写的代码改为python,这种应用还是用python方便 #coding=utf8 import os,re,time,logging import pyautogui from apscheduler.schedulers.background import BackgroundSch 阅读全文

posted @ 2020-04-13 18:46 pu369com 阅读(1034) 评论(0) 推荐(0) 编辑

2020年4月10日

APScheduler初探

摘要: 安装 pip install apscheduler 2 APScheduler最基本的用法: “定时几秒后启动job” 每个job都会以thread的方式被调度。分为BlockingScheduler与BackgroundScheduler方式 BackgroundScheduler例子(不阻塞) 阅读全文

posted @ 2020-04-10 13:01 pu369com 阅读(267) 评论(0) 推荐(0) 编辑

python写个简单的记工作日记的脚本并打包为EXE

摘要: 1 win10系统,代码: #!/usr/bin/python # -*- coding: UTF-8 -*- import time import tkinter as tk import tkinter.font as tf import webbrowser as web def save() 阅读全文

posted @ 2020-04-10 11:30 pu369com 阅读(313) 评论(0) 推荐(0) 编辑

2020年4月8日

python操作word

摘要: 1、 先要安装第三方库 python-docx。(处理doc和docx,但是doc易出问题) pip install python-docx 2、生成一个word #coding=utf-8 from docx import Document Doc = Document() Doc.save("m 阅读全文

posted @ 2020-04-08 20:29 pu369com 阅读(261) 评论(0) 推荐(0) 编辑

2020年4月7日

python安装pyautogui时遇到Pillow问题

摘要: 执行 pip install pyautogui 提示: Could not find a version that satisfies the requirement Pillow>=6.2.1 (from pyscreeze>=0.1.21->pyautogui) (from versions: 阅读全文

posted @ 2020-04-07 17:50 pu369com 阅读(2631) 评论(0) 推荐(0) 编辑

python中弹出消息框--MessageBox( pywin32)

摘要: 代码: import win32api,win32con win32api.MessageBox(0, "这是一个测试消息", "消息框标题",win32con.MB_OK) 需要安装pywin32模块, pip install pywin32 有了这个模块python就可以使用windows ap 阅读全文

posted @ 2020-04-07 10:39 pu369com 阅读(13593) 评论(0) 推荐(0) 编辑

2020年4月6日

python 正则匹配汉字、简单读写、打开txt文件

摘要: win10环境,假设: py脚本所在的当前目录下有index.html文件,现在, 要将index.html 中的汉字提取出来,保存为当前目录下的temp.txt,然后用notepad.txt打开查看。代码: #coding=utf8 import os,re with open('index.ht 阅读全文

posted @ 2020-04-06 13:51 pu369com 阅读(1337) 评论(0) 推荐(0) 编辑

2020年4月1日

安装node(淘宝镜像)+Vue-cli+element-ui逐步搭建开发环境

摘要: win10环境 一、 安装node 下载地址:http://nodejs.cn/download/ ,一路NEXT,我安装到了d:\nodejs 目录。 二、让node自带的npm使用淘宝镜像(推荐方式) npm config set -g registry https://registry.npm 阅读全文

posted @ 2020-04-01 16:31 pu369com 阅读(783) 评论(0) 推荐(0) 编辑

2020年3月30日

通过pip工具安装selenium(初次安装、升级),以及下载chromedriver.exe浏览器驱动

摘要: 1、初始安装 语法:install selenium==版本号 例:pip install selenium==3.141.0 2、升级安装 pip install --upgrade selenium 3、下载浏览器驱动,地址:http://www.seleniumhq.org/download/ 阅读全文

posted @ 2020-03-30 18:09 pu369com 阅读(683) 评论(0) 推荐(0) 编辑

python 函数返回值(总结)

摘要: 没有返回值的叫过程 def test1(): msg="我是一个过程" print(msg) 有return的叫函数 def test02(): msg="我是函数,有返回值" print(msg) return msg 关于返回的值: 定义的函数可以返回多个值,组合成元组def test03(): 阅读全文

posted @ 2020-03-30 15:16 pu369com 阅读(315) 评论(0) 推荐(0) 编辑

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 32 下一页

导航