stardust-shadow

导航

文章分类 -  Python

module 介绍
Flask, Celery 异步用法
摘要:文件上传 celery task 需要当前context celery work start 在app 之前, app name 是project main py 的名字 周期刷新用yield 阅读全文

posted @ 2024-11-21 19:44 阡年 阅读(10) 评论(0) 推荐(0)

天池蒸汽
摘要:https://blog.csdn.net/weixin_44786325/article/details/124696102 阅读全文

posted @ 2023-08-16 09:41 阡年 阅读(17) 评论(0) 推荐(0)

BGD梯度下降求最优解
摘要:BGD 批量梯度下降 一元一次线性回归¶ In [21]: import numpy as np import matplotlib.pyplot as plt In [22]: X = np.random.rand(100,1) w,b = np.random.randint(1,10,size= 阅读全文

posted @ 2023-08-12 11:31 阡年 阅读(25) 评论(0) 推荐(0)

pandas 常用函数
摘要:获取随机的1000行data数据。 import numpy as npfrom sklearn.datasets import fetch_openmlfrom sklearn.linear_model import LinearRegressiondata = fetch_openml(name 阅读全文

posted @ 2023-08-10 23:27 阡年 阅读(24) 评论(0) 推荐(0)

Jupter希腊字母
摘要:复杂计算: https://zhuanlan.zhihu.com/p/610557255 阅读全文

posted @ 2023-07-18 21:58 阡年 阅读(29) 评论(0) 推荐(0)

selenium web UI 自动化
摘要:from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains browswer.f 阅读全文

posted @ 2023-07-10 15:28 阡年 阅读(14) 评论(0) 推荐(0)

Python 关键字
摘要:assert 断言 断言可以在条件不满足程序运行的情况下直接返回错误,而不必等待程序运行后出现崩溃的情况,例如我们的代码只能在 Linux 系统下运行,可以先判断当前系统是否符合条件。 >>> assert 1==2, '1 不等于 2' Traceback (most recent call la 阅读全文

posted @ 2022-08-31 21:38 阡年 阅读(41) 评论(0) 推荐(0)

[Python] Logging module
摘要:Example: 阅读全文

posted @ 2022-08-23 21:33 阡年 阅读(23) 评论(0) 推荐(0)