随笔分类 -  python

摘要:解决:检查电脑是否有开启【代理设置】,关掉代理就可以了。 https://github.com/pypa/pip/issues/9972 (完) 阅读全文
posted @ 2021-09-07 10:23 lishidefengchen 编辑
摘要:Installation of pytube This guide assumes you already have python and pip installed. To install pytube, run the following command in your terminal: $ 阅读全文
posted @ 2021-09-06 10:31 lishidefengchen 编辑
摘要:1、打开控制台2、python -m http.server 阅读全文
posted @ 2019-12-06 15:49 lishidefengchen 编辑
摘要:pip install beautifulsoup4 阅读全文
posted @ 2019-12-04 14:56 lishidefengchen 编辑
摘要:测试结果如下: 控制台跑的程序,然后去163邮箱发件箱里,出现了发送的邮件信息, qq邮箱的收件箱里出现了收件信息, (完) 廖雪峰python教程:https://www.liaoxuefeng.com/wiki/1016959663602400/1017790702398272?t=155826 阅读全文
posted @ 2019-05-19 18:42 lishidefengchen 编辑
摘要:参考廖雪峰教程:https://www.liaoxuefeng.com/wiki/1016959663602400/1019273143120480 进去的方式需要修改,找到自己创建的文件目录 在控制台执行 D:\funs\python\myproject\venv\Scripts\activate 阅读全文
posted @ 2019-05-19 12:48 lishidefengchen 编辑
摘要:https://www.liaoxuefeng.com/wiki/1016959663602400/1017648783851616 阅读全文
posted @ 2019-05-13 14:24 lishidefengchen 编辑
摘要:# -*- coding: utf-8 -*- import os import sys def rename(): path = input("路径(例如D:\\\\picture):") name = input("新文件开头名:") startNumber = input("起始数字:") fileType = input("文件类型(如 .jpg、.t... 阅读全文
posted @ 2019-05-13 10:09 lishidefengchen 编辑
摘要:# -*- 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: ... 阅读全文
posted @ 2019-04-25 16:17 lishidefengchen 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-04-24 05:53 lishidefengchen 编辑
摘要:如此简单。 阅读全文
posted @ 2019-04-23 17:28 lishidefengchen 编辑
摘要:import os t = os.system('clear') 阅读全文
posted @ 2019-04-10 10:02 lishidefengchen 编辑

点击右上角即可分享
微信分享提示