09 2021 档案
摘要:引入第三方包 pip install PyExecJS -i https://mirrors.aliyun.com/pypi/simple/ 或者 pip insyall PyExecJS 调用js文件进行方法执行 import execjs Passwd = execjs.compile(open
阅读全文
摘要:创建一个maven项目 在pox.xml文件配置如下信息 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20
阅读全文
摘要:第一步 需要一个阿里云网盘账户 如果没有账户的可以通过以下链接获取 我在使用不限速「阿里云盘」,赠送你 500GB 快来试试吧 点此链接领取福利: https://pages.aliyundrive.com/mobile-page/web/beinvited.html?code=bba50fd 第二
阅读全文
摘要:基于Smtplib 进行邮件发送 # -*- coding: UTF-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header from email.utils import p
阅读全文
摘要:第一种 sleep 睡眠线程 import time # 每n 秒执行一次 def timer(n): while True: print(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) time.sleep(n) 第二种 threading模块中的Tim
阅读全文
摘要:请求一个附件地址,并将附件下载下来 import requests url = 'https://js.shaanxi.gov.cn/userfiles/2021-Year/8-Month/31-Day/附件:8-2三类人员跨省变更人员名单.xls' res = requests.get(url)
阅读全文