会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tslam
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
14
15
16
17
18
19
20
21
22
···
49
下一页
2023年11月24日
celery同步 时间
摘要: 不允许超过30分钟
阅读全文
posted @ 2023-11-24 08:59 tslam
阅读(22)
评论(0)
推荐(0)
前端发请求一般要求多长时间完成
摘要: 2分钟内.
阅读全文
posted @ 2023-11-24 08:58 tslam
阅读(18)
评论(0)
推荐(0)
2023年11月20日
redis 在windows使用
摘要: 一、安装及cmd中使用 1 下载软件(包含服务端和客户端) - 从官网找安装包 下载后 文件 redis-server.exe 就是服务端. 文件 redis-cli.exe 是客户端. 2 在cmd中启动服务端 在当前窗口中运行cmd, 输入redis-serve 为了方便,可以把redis目录加
阅读全文
posted @ 2023-11-20 15:07 tslam
阅读(439)
评论(0)
推荐(0)
2023年10月24日
进程池
摘要: code import os import time from concurrent.futures.process import ProcessPoolExecutor def test(n): print(f'n:{n}-os.getpid:{os.getpid()}') time.sleep(
阅读全文
posted @ 2023-10-24 16:24 tslam
阅读(22)
评论(0)
推荐(0)
2023年10月23日
TypeError: 'str' object is not callable
摘要: 这个报错 等价于 "jack"(), 即给字符串加了括号让执行. 按照这个思路解决问题
阅读全文
posted @ 2023-10-23 14:41 tslam
阅读(37)
评论(0)
推荐(0)
2023年10月20日
TypeError: Object of type 'Animal' is not JSON serializable/ 自定义对象 转json串
摘要: import jsonclass Animal(object): def __init__(self): self.name = 'tom' def __repr__(self): return f'my name is {self.name}&i like apple'd1 = { 'county
阅读全文
posted @ 2023-10-20 14:48 tslam
阅读(26)
评论(0)
推荐(0)
2023年10月19日
python 取出整数和余数
摘要: res = divmod(101, 10)print(f'res:{res}') # res:(10, 1)
阅读全文
posted @ 2023-10-19 17:25 tslam
阅读(56)
评论(0)
推荐(0)
python ASCII码与字符转换
摘要: ret = chr(65)ret2 = ord('A')print(f'ret:{ret}') # 根据ASCII码找对应字符print(f'ret2:{ret2}') # 根据字符找ASCII码
阅读全文
posted @ 2023-10-19 17:19 tslam
阅读(59)
评论(0)
推荐(0)
python 判断变量名能否调用
摘要: res = 'jack'def index(): return 123ret = callable(res)ret2 = callable(index)print(f'ret:{ret}') # ret:Falseprint(f'ret2:{ret2}') # ret2:True
阅读全文
posted @ 2023-10-19 17:14 tslam
阅读(23)
评论(0)
推荐(0)
2023年10月17日
能否有替代postman的工具
摘要: 有, curl命令. 且在windows下可以使用该命令. 第一步: 进入官网,下载对应电脑系统的版本 第二步: 解压缩,找到bin子文件夹 第三步: 复制文件夹地址,加入环境变量 第四步: 打开cmd, 然后输入curl --help, 如出现对应的信息,则代表成功了.
阅读全文
posted @ 2023-10-17 09:54 tslam
阅读(319)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
49
下一页
公告