随笔分类 -  python

摘要:1、 https://www.cnblogs.com/hard-working-Bert/p/14236125.html 这里主要展示一个最简单的django中的celery任务,为了让大家都可以用上celery。话不多说,首先给大家看一下我的目录 这里的TestCelery是我的项目名称,Cele 阅读全文

posted @ 2024-09-05 11:09 风行天下-2080 阅读(366) 评论(0) 推荐(0) |

摘要:1、http://t.zoukankan.com/xiamaojjie-p-13385223.html 执行多条linux命令,多条命令放在一个单引号下面,各命令之间用分号隔开,如:cmd_str = "cd /;cd etc;ls -l;" 且在末尾加上get_pty=True demo如下: i 阅读全文

posted @ 2022-09-09 16:46 风行天下-2080 阅读(425) 评论(0) 推荐(0) |

摘要:1、 https://www.jb51.net/article/226935.htm https://www.runoob.com/python/os-walk.html https://www.cnblogs.com/he-ding/p/10045246.html os.walk()是一种遍历目录 阅读全文

posted @ 2022-09-09 10:34 风行天下-2080 阅读(432) 评论(0) 推荐(0) |

摘要:1、Django模板语言 https://wenku.baidu.com/view/dc7010a1e63a580216fc700abb68a98271feacdf.html https://wenku.baidu.com/view/57050c4b26c52cc58bd63186bceb19e8b 阅读全文

posted @ 2022-07-21 16:15 风行天下-2080 阅读(17) 评论(0) 推荐(0) |

摘要:1、获取当前路径文件名。 ##(3)获取当前路径的文件名。import ospath = './' # 替换为你的路径dir = os.listdir(path) # dir是目录下的全部文件print("当前目录的全部文件名称为::",dir)fopen = open('file01', 'a+' 阅读全文

posted @ 2022-07-20 15:01 风行天下-2080 阅读(1050) 评论(0) 推荐(0) |

摘要:1、 https://www.cnblogs.com/ZJackSparrow/p/11960586.html inclusions/_archives.html ... {% for date in date_list %} <li> <a href="{% url 'blog:archive' 阅读全文

posted @ 2022-05-25 17:24 风行天下-2080 阅读(193) 评论(0) 推荐(0) |

摘要:1、 https://baijiahao.baidu.com/s?id=1700963066474006538&wfr=spider&for=pc https://www.runoob.com/python/python-files-io.html #!/usr/bin/python # -*- c 阅读全文

posted @ 2022-05-18 10:06 风行天下-2080 阅读(32) 评论(0) 推荐(0) |

摘要:1、python读取文件中的数据插入到mysql https://blog.csdn.net/weixin_46429290/article/details/119303393?utm_medium=distribute.pc_relevant.none-task-blog-2~default~ba 阅读全文

posted @ 2022-05-10 16:38 风行天下-2080 阅读(872) 评论(0) 推荐(0) |

摘要:1、 Html https://www.cnblogs.com/clschao/articles/10077261.html 2、 https://www.cnblogs.com/clschao/articles/10082587.html 3、java script https://www.cnb 阅读全文

posted @ 2021-12-20 16:01 风行天下-2080 阅读(37) 评论(0) 推荐(0) |

摘要:1、 https://www.cnblogs.com/hls91/p/11714827.html 引入 Socket的英文原义是“孔”或“插座”,在Unix的进程通信机制中又称为‘套接字’。套接字实际上并不复杂,它是由一个ip地址以及一个端口号组成。Socket正如其英文原意那样,像一个多孔插座。一 阅读全文

posted @ 2021-12-09 09:29 风行天下-2080 阅读(298) 评论(0) 推荐(0) |

摘要:1、https://blog.csdn.net/u010837794/article/details/74940885?spm=1001.2101.3001.6650.5&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EB 阅读全文

posted @ 2021-11-10 10:40 风行天下-2080 阅读(185) 评论(0) 推荐(0) |

摘要:1、 https://zhuanlan.zhihu.com/p/118411015 一、安装方式 建议使用 pip3 install ansible 的方式安装,便于导入模块 这种安装方式,配置文件不会在 /etc 下产生。 将会在下面的路径下: ``` /usr/local/lib/python3 阅读全文

posted @ 2021-07-20 11:43 风行天下-2080 阅读(460) 评论(0) 推荐(0) |

摘要:1、 https://blog.csdn.net/hqs2212586/article/details/86577902 一、原生form实现书城增删改查1、构建模型并完成数据库迁移(1)构建书城模型 from django.db import models # Create your models 阅读全文

posted @ 2021-07-16 14:33 风行天下-2080 阅读(136) 评论(0) 推荐(0) |

摘要:1、 https://blog.csdn.net/qq_38787214/article/details/87902291?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachine 阅读全文

posted @ 2021-07-13 15:43 风行天下-2080 阅读(187) 评论(0) 推荐(0) |

摘要:1、https://www.runoob.com/note/41154 https://blog.csdn.net/qq_37616069/article/details/79387010 2、 https://www.runoob.com/python3/python3-class.html 类的 阅读全文

posted @ 2021-07-09 16:52 风行天下-2080 阅读(221) 评论(0) 推荐(0) |

摘要:1、http://c.biancheng.net/view/2270.html 那么,函数装饰器的工作原理是怎样的呢?假设用 funA() 函数装饰器去装饰 funB() 函数,如下所示: #funA 作为装饰器函数 def funA(fn): #... fn() # 执行传入的fn参数 #... 阅读全文

posted @ 2021-07-08 16:37 风行天下-2080 阅读(54) 评论(0) 推荐(0) |

摘要:1、 https://zhuanlan.zhihu.com/p/385232872 完美解决了问题,特此记录一下: sudo python2 -m pip install typing 阅读全文

posted @ 2021-07-07 17:14 风行天下-2080 阅读(658) 评论(0) 推荐(0) |

摘要:1、 https://www.cnblogs.com/badweather/p/11107358.html 2、 Windows中报错:Fatal error in launcher: Unable to create process using '"' 的解决方案 https://www.cnbl 阅读全文

posted @ 2021-07-07 13:51 风行天下-2080 阅读(71) 评论(0) 推荐(0) |

摘要:1、 https://blog.csdn.net/wyongkang/article/details/116229846 https://my.oschina.net/u/4380404/blog/4094774 2、 https://www.zhihu.com/question/273973677 阅读全文

posted @ 2021-07-06 14:51 风行天下-2080 阅读(837) 评论(0) 推荐(0) |

摘要:1、 http://www.bubuko.com/infodetail-3683762.html 2、 https://www.cnblogs.com/yyysunshine/p/11324951.html https://www.bbsmax.com/A/n2d9aej0dD/ https://z 阅读全文

posted @ 2021-07-06 14:36 风行天下-2080 阅读(60) 评论(0) 推荐(0) |

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3