随笔分类 - python
摘要:解决:检查电脑是否有开启【代理设置】,关掉代理就可以了。 https://github.com/pypa/pip/issues/9972 (完)
阅读全文
摘要:Installation of pytube This guide assumes you already have python and pip installed. To install pytube, run the following command in your terminal: $
阅读全文
摘要:1、打开控制台2、python -m http.server
阅读全文
摘要:测试结果如下: 控制台跑的程序,然后去163邮箱发件箱里,出现了发送的邮件信息, qq邮箱的收件箱里出现了收件信息, (完) 廖雪峰python教程:https://www.liaoxuefeng.com/wiki/1016959663602400/1017790702398272?t=155826
阅读全文
摘要:参考廖雪峰教程:https://www.liaoxuefeng.com/wiki/1016959663602400/1019273143120480 进去的方式需要修改,找到自己创建的文件目录 在控制台执行 D:\funs\python\myproject\venv\Scripts\activate
阅读全文
摘要:https://www.liaoxuefeng.com/wiki/1016959663602400/1017648783851616
阅读全文
摘要:# -*- coding: utf-8 -*- import os import sys def rename(): path = input("路径(例如D:\\\\picture):") name = input("新文件开头名:") startNumber = input("起始数字:") fileType = input("文件类型(如 .jpg、.t...
阅读全文
摘要:# -*- coding: utf-8 -*- def triangles(): yield [1] # n = 0 第一行 yield [1, 1] # n = 1 第二行 b, n, old = 0, 2, [1, 1] # 从第三行开始 n = 2 newL = list(range(n + 1)) while b < n: ...
阅读全文