会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小默同学的个人博客
世上无难事,只怕有心人。
Nothing is difficult if you put your heart into it.
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
11
下一页
2022年7月30日
termux ftp传输
摘要: 记录下解决的博客:https://superigbt_superigbt.gitee.io/2020/03/15/termux-ftp/
阅读全文
posted @ 2022-07-30 13:30 小默同学
阅读(147)
评论(0)
推荐(0)
编辑
termux更新快源
摘要: 链接如下: https://blog.csdn.net/lxyoucan/article/details/120064100
阅读全文
posted @ 2022-07-30 11:02 小默同学
阅读(263)
评论(0)
推荐(0)
编辑
2022年6月17日
python视频提取音频
摘要: 代码如下: from moviepy.editor import VideoFileClip # ,AudioFileClip,afx video = VideoFileClip(“Why Don’t We-What Am I.mp4”) audio = video.audio audio.writ
阅读全文
posted @ 2022-06-17 13:11 小默同学
阅读(53)
评论(0)
推荐(0)
编辑
2022年5月25日
Djikstra算法记录一下
摘要: 代码我忘记到哪里抄的了,这个博客就是为了保存下代码,所以没有写出处,如果需要的话可以联系我补出处。 代码如下: def dijkstra(graph,src): # graph:邻接矩阵,src:起点 if graph == None: return None # 顶点集合 nodes = [i f
阅读全文
posted @ 2022-05-25 02:58 小默同学
阅读(51)
评论(0)
推荐(0)
编辑
2022年5月1日
python通过字符串导入模型
摘要: import importlib urls = importlib.import_module("myproject.urls")
阅读全文
posted @ 2022-05-01 19:57 小默同学
阅读(31)
评论(0)
推荐(0)
编辑
python全局常量积累下
摘要: __name__:if __name__ == "__main__" __file__: 当前文件的路径 __doc__:文档对象 __package__:包名
阅读全文
posted @ 2022-05-01 03:09 小默同学
阅读(43)
评论(0)
推荐(0)
编辑
【异常】RelatedObjectDoesNotExist django
摘要: 这个错误发生在我使用OneToOne反向关连的时候,反向索引related_name报错。 原因:我使用外键和OneToOne关联了同一个表,然后django没办法处理于是报这个错误。 解决:去掉OneToOne或者去掉ForeignKey字段。
阅读全文
posted @ 2022-05-01 02:00 小默同学
阅读(223)
评论(0)
推荐(0)
编辑
2022年4月30日
django中media的配置
摘要: 参考博客:https://www.cnblogs.com/paulwhw/p/9551151.html settings.py中配置 MEDIA_URL = '/media/' MEDIA_ROOT = BASE_DIR / 'media' # FileField upload的路径的其实位置 ur
阅读全文
posted @ 2022-04-30 21:12 小默同学
阅读(61)
评论(0)
推荐(0)
编辑
【报错】pypi File already exists. See https://pypi.org/help/#file-name-reuse for more inf
摘要: 两个可能: 清除掉dist和build目录 修改版本号
阅读全文
posted @ 2022-04-30 06:16 小默同学
阅读(98)
评论(0)
推荐(0)
编辑
pip换源
摘要: 记录下换源网站:https://blog.csdn.net/ghost55565/article/details/119322647 还有个官方的源(虽然有点慢也记录下): https://pypi.Python.org/simple/
阅读全文
posted @ 2022-04-30 04:45 小默同学
阅读(15)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
···
11
下一页
公告