“2022年7月”存档文章有16

'FLASK_ENV' is deprecated and will not be used in Flask 2.3. Use 'FLASK_DEBUG' instead.

最近将 Flask 升级到 2.3 之后,使用Error: Detected factory 'create_app' in module 'app', but could not call it without arguments.方式运行网站程序,出现了如下警告:'FLASK_ENV' is deprecated and will not be used in Flask 2.3. Use '...

什么是 baiduspider

Baiduspider 是百度搜索引擎的一个自动程序,它的作用是访问互联网上的网页,建立索引数据库,使用户能在百度搜索引擎中搜索到您网站上的网页。Baiduspider 是中国最重要的搜索引擎百度使用的爬行蜘蛛的正式名称。baidu spider 每天再互联网上不知疲倦的抓取内容,之后将内容存入索引中,为网名提供内容检索。要了解 baidu spider,我们就需要了解什么是搜索引擎:搜索引擎是什...

Error: Detected factory 'create_app' in module 'app', but could not call it without arguments.

今天在更新 PyCharm 的时候,版本更新到:PyCharm 2022.2 (Professional Edition),如下图所示:但是运行 Flask 程序你的时候出现如下错误:FLASK_APP = manage.py FLASK_ENV = development FLASK_DEBUG = 1 In folder E:/Code/rewirte_sms_receive E:\C...

存在问题的 UserAgent

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/92.0.4515.119 Safari/537.36此 Useragent 为 Google 搜索引擎爬虫。通过Useragent解析,存在一些问题需要解决。

AttributeError: 'ForeignKey' object has no attribute 'is_clause_element'

今天使用 SQLAlchemy 的时候出现了如下错误:AttributeError: 'ForeignKey' object has no attribute 'is_clause_element'出现问题的原因:通过查询官方文档,解释为:True if this object is an instance of InstanceState.不明所以。同时我检查了这张表,具体出现错误的字段为:ac...

TypeError: can only concatenate str (not "NoneType") to str

最近对程序一些功能进行更新,但是出现了如下错误:TypeError: can only concatenate str (not "NoneType") to str具体错误代码:web_browser_dict = {'browserName': query_web_browser.name_en + ' ' + browser_version,出现错误的原因:再拼接字符串的时候,有一个字符串...

2022年7月27日交易总结

最近一段时间在研究加密货币,主要是由于收入实在是不行,扩展其他收入。在2022年7月26日以前盈利尚可,投入的资金也少,下面是盈亏截图:可以看到25日26日连续亏损2日,交易截图如下:点击👆上方图片可以🔍主要是前面一段时间,逢低买入,之后经过一波拉升,可以出货,获利客观。于是在经过1664.70的高点之后,经过大跌,我认为可以入场,于是在1559.41买入:当时主要是看横盘了很久,没有动静,之...

ValueError: time data '2022-07-30T16:00:00.000Z' does not match format 'YYYY-MM-DDTHH:MM:SS.fffZ'

今天在后端处理前端上传上来的时间数据的时候,在Python中格式化时间,出现了如下错误:ValueError: time data '2022-07-30T16:00:00.000Z' does not match format 'YYYY-MM-DDTHH:MM:SS.fffZ'出现错误的原因:格式化的时候,格式不对,需要重新修改。解决方案:使用如下的方式格式化时间字符串:datetime.st...