会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
青春叛逆者
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
31
下一页
2019年11月7日
The repository located at pypi.douban.com is not a trusted or secure host and is being ignored
摘要: vi ~/.pip/pip.con #正确写法 1 [global] 2 timeout = 6000 3 index-url = https://pypi.douban.com/simple 4 5 [install] 6 use-mirrors = true 7 mirrors = https:
阅读全文
posted @ 2019-11-07 12:58 青春叛逆者
阅读(1622)
评论(0)
推荐(0)
2019年11月5日
计算当前时间与定时时间之间的分钟数秒数
该文被密码保护。
阅读全文
posted @ 2019-11-05 20:45 青春叛逆者
阅读(0)
评论(0)
推荐(0)
2019年11月1日
xadmin 修改登录页面效果图
摘要: 没有修改前页面如图: 修改之后效果图: 如何修改呢?
阅读全文
posted @ 2019-11-01 13:20 青春叛逆者
阅读(1441)
评论(3)
推荐(1)
2019年10月30日
Mac上安装Python3虚拟环境(VirtualEnv)教程
摘要: 前言 了解安装步骤之前,我们先聊聊几个问题: 1.为什么要安装虚拟机? 单独的虚拟环境可以让每一个Python项目单独使用一个环境,而不会影响Python系统环境,也不会影响其他项目的环境。示意图如下 2、为什么要使用virtualenv 因为项目开发过程中多个项目,python版本或一些包适用条件
阅读全文
posted @ 2019-10-30 15:09 青春叛逆者
阅读(890)
评论(0)
推荐(0)
使用python 获取本机IP
该文被密码保护。
阅读全文
posted @ 2019-10-30 12:56 青春叛逆者
阅读(1)
评论(0)
推荐(0)
django 安装验证码插件captcha
摘要: 这两个文件位置
阅读全文
posted @ 2019-10-30 09:53 青春叛逆者
阅读(428)
评论(0)
推荐(0)
2019年10月21日
OS path 的常见应用
摘要: import os path=r'/Users/mac126/Desktop/openstudy/路径.py' result=os.path.split(path) print(result)#截取文件夹 与文件名,以元组形式存在 result=os.path.splitext(path) #截取文件后缀,以元组形式存在 print(result) size=os.path.getsize(pat
阅读全文
posted @ 2019-10-21 17:05 青春叛逆者
阅读(123)
评论(0)
推荐(0)
os 相对路径与绝对路径
摘要: import os path1=os.path.dirname(__file__) path=os.path.dirname('/Users/mac126/Desktop/openstudy/images/girl.jpg') path2=os.path.join(path1,) print(path1,path) r=os.path.isabs('/Users/mac126/Desktop/...
阅读全文
posted @ 2019-10-21 16:54 青春叛逆者
阅读(1342)
评论(0)
推荐(0)
RecursionError: maximum recursion depth exceeded while calling a Python object
摘要: 这种错误是递归错误,知道问题原因就好解决了 上面是一个典型的有入口没终点的案例,运行程序就会一直跑下去,当跑到一定程度就会报递归错误。 成功的案例
阅读全文
posted @ 2019-10-21 16:00 青春叛逆者
阅读(5821)
评论(0)
推荐(0)
print 高级用法
摘要: my_name='zhangsan' print(f"Let's talk {my_name},Don't paly basketball in the room") #等价于下面方式 print("Let's talk {},Don't paly basketball in the room".format(my_name)) #打印结果如下: ''' Let's talk zhangsan,D
阅读全文
posted @ 2019-10-21 10:49 青春叛逆者
阅读(211)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
31
下一页
公告