- 博客(138)
- 资源 (16)
- 收藏
- 关注
原创 SqlAlchemy Could not evaluate current criteria in Python: “Cannot evaluate clauselist with operator
【代码】SqlAlchemy Could not evaluate current criteria in Python: “Cannot evaluate clauselist with operator。
2024-03-05 09:48:31 214
原创 java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding“ with message transform method call fa
3、修改配置,取消勾选。
2023-11-27 16:18:40 1497
原创 maven打包出现:Failed to execute goal on project ...: Could not resolve dependencies for project
4、手工调整,选择列表中的java, 再点上面的Sources,选择列表中的resources再点上面的Resources。5、原因,项目是以前同事的项目,路径没有按maven默认的来,所以找不到依赖,也找不到主类。3、然后在Project Structure里发现:路径不一致。2、我的项目是多项目模块,compile时发现有以下输出。
2023-11-27 15:33:40 6090
原创 Imbox imaplib.IMAP4.error: command CLOSE illegal in state AUTH, only allowed in states SELECT
python,使用Imbox读取163邮箱信息,imaplib.IMAP4.error: command CLOSE illegal in state AUTH, only allowed in states SELECT
2023-03-29 14:17:44 1219 1
原创 sqlalchemy DetachedInstanceError: Instance <Users at 0xaed0fd0> is not bound to a Session
DetachedInstanceError: Instance is not bound to a Session
2023-01-18 09:20:44 218
原创 python,jsonschema, marshmallow, “None is not of type ‘string‘
python,jsonschema, marshmallow, "None is not of type 'string'
2023-01-09 10:04:08 475
原创 xamarin使用Rg.Plugins.Popup.Pages报Specified cast is not valid
xamarin使用Rg.Plugins.Popup.Pages
2022-12-04 22:09:01 225
原创 注册蓝本时,module ‘mac_module‘ has no attribute ‘register‘
注册蓝本时,module 'mac_module' has no attribute 'register'
2022-09-16 15:48:14 382
原创 vue When `proxy` in package.json is an object, each `context` object must have a `target`
1、参考:https://blog.csdn.net/honeymoon_/article/details/1184073292、vue.config.js修改前:'/rs_api': { //target: 'http://127.0.0.1:5000', changeOrigin: true, pathRewrite: { ['^' + '/rs_api']: '' }},3、修改后:'/rs_api': { target: 'http://127.0.0.1:500
2022-05-31 16:50:37 1322
原创 python Flask flasgger 增加请求token
1、参考:https://blog.csdn.net/chanelwtt/article/details/1227176322、用Fiddler抓包,发现并没有在请求头中增加token3、查看flasgger 代码,发现 flasgger.constants.py中有DEFAULT_FIELDS = {"tags": [], "consumes": ['application/json'], "produces": ['application/json'],
2022-05-25 14:36:28 449
原创 delphi10.3报E2003 Undeclared identifier: ‘TSuperRttiContext‘
1、参考https://blog.csdn.net/pulledup/article/details/1142756172、打开单元:superobject{$if defined(VER210) or defined(VER220) or defined(VER230)OR defined(VER320)} {$define HAVE_RTTI}{$ifend}改为:{$if defined(VER210) or defined(VER220) or defined(VER23.
2022-05-14 22:27:24 850
原创 python中的协程示例
1、参考:https://yanbin.blog/how-flask-work-with-asyncio/#more-103682、 先前使用queue.Queue,这个队列是自带锁机制,且其put,get方法可以使用阻塞,造成调用Flask的api接口发送socket消息时,有时能发,有时不能发的问题,后改为协程实现。import asyncioasync def send_one_msg(self, msg): try: soc_bytes = self.get_pack_buf(.
2022-05-11 13:42:13 420
原创 python SQLAlchemy实体转字典
1、实体基类class ModelBase(object): def __init__(self): self.fields = [x.key for x in self.__mapper__.attrs] def __iter__(self): return next(self) def __next__(self): for key in self.fields: value = getattr(s
2022-04-23 08:29:07 1495 1
原创 Flash uwsgi不执行if __name__ == ‘__main__‘里的内容
1、代码如下:print(__name__)if __name__ == '__main__': print('inner main') app.run()2、使用 uwsgi启动,打印出来的是:uwsgi_file__opt_main,不会执行app.run/usr/local/python3/bin/uwsgi uwsgi.ini控制台显示:WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter
2022-04-13 11:20:55 593
原创 python字符串、字节串,转码
1、参考:https://www.jianshu.com/p/5bb986772ef8https://www.cnblogs.com/longyuu/p/14180127.html2、示例t1 = 'test'.encode()type(t1)# <class 'bytes'>t2 = b'test'.decode()type(t2)# <class 'str'>t3 = b'test'.hex()type(t3)# <class 'str'&
2022-04-06 16:11:52 771
原创 anaconda安装环境出现safetyerror, 安装包时出现platformdirs
1、参考https://blog.csdn.net/qq_38163755/article/details/885800302、原因:在activate env_name后使用了pip install package,应该使用conda installpackage
2022-03-31 14:00:54 1653
原创 sbin/mount.vboxsf: mounting failed with the error: Invalid argument
参考:https://blog.csdn.net/kongxx/article/details/6734468https://blog.csdn.net/gladyoucame/article/details/84010176https://www.gavindong.com/1194.htmlvirtual box对应的快捷键:全屏模式: Host+F无缝模式: Host+L自动缩放模式: Host+C其中,Host(默认的)是键盘上右边的那个Ctrl键对应的模式,可以通过上面对
2022-03-26 22:44:52 5047
原创 Delphi7 Cannot complete a class with incomplete methods implementations
1、Ctrl+Shift+上下箭头键,pas文件中只有部分方法可以在声明与定义来回切换,有的不行2、使用Ctrl+Shift+C,自动完成类,会自动定位到下面代码处{$IFDEF APPSWITCH}function TForm1.Detail(ModuleType, ItemType: Integer; ACheckType: Integer = 0): Integer;{$ELSE}function TForm1.Detail(ModuleType, ItemType: Integer;
2022-03-11 14:05:53 142
原创 getLogger() missing 1 required positional argument: ‘name‘
1、在做python单元测试时,报以上错误2、查看代码,发现原有如下代码:def config_log_handler(): # 初始化 logging.basicConfig() ... logging.getLogger().setLevel(logging.INFO) logging.getLogger = getLoggerdef getLogger(name=None): if name: log = loggi
2022-02-23 17:09:28 747
原创 python 中文编码
1、参考:https://blog.csdn.net/weixin_39994949/article/details/1109896572、代码:str_without_b = '\u00ce\u00de'str = str_without_b.encode('raw_unicode_escape')str.decode('gb2312')
2022-02-15 14:34:27 466
原创 C# GDI+颜色融合
1、使用BitBlt进行背景融合,参考:http://www.pinvoke.net/default.aspx/Enums/TernaryRasterOperations.htmlhttp://www.pinvoke.net/default.aspx/Enums/TernaryRasterOperations.htmlhttp://www.pinvoke.net/default.aspx/gdi32/StretchBlt.htmlhttps://www.cnblogs.com/zhaogaoji
2022-01-12 20:49:11 502
原创 C# iText7 设置PDF背景
1、参考https://cloud.tencent.com/developer/ask/148120/// <summary>/// 转换文件/// </summary>/// <param name="src"></param>/// <param name="dest"></param>public void ToBackgroundPDF(string src, string dest){ var pdfRea
2022-01-09 17:49:54 1001
原创 delphi TRichView滚动条滚动到底部
1、参考:https://stackoverflow.com/questions/6372193/how-to-autoscroll-to-the-end-of-richedit2、代码SendMessage(RichView1.handle, WM_VSCROLL, SB_BOTTOM, 0);
2021-12-17 22:22:11 242
原创 python utc时间与本地时间转换
# python3.6from datetime import datetimefrom pytz import utc# 本地时间dt_loc = datetime.now()# 本地时间转UTC时间dt_utc = datetime.astimezone(utc)# UTC时间转本地时间dt_loc1 = dt_utc.astimezone()
2021-11-05 10:22:16 6815
原创 Wireshark抓本地MQTT包
1、参考https://www.cnblogs.com/sunning-8/p/10415081.html https://www.cnblogs.com/softidea/p/10446388.html https://www.netresec.com/?page=RawCap2、下载RawCap3、使用该命令RawCap.exe -q 127.0.0.1 - | Wireshark.exe -i - -k4、或者RawC...
2021-10-19 22:53:02 3863
原创 delphi7计算hmac_SHA256
1、参考https://qna.habr.com/q/2323422、代码uses hash, HMAC, HMACSHA2; function GetSign: string;var i: Integer; key: string; values: string; HMacContent: THMAC_Context; mac: TSHA256Digest;begin key := '2018'; values := '2020-10-13&
2021-10-13 23:10:45 1086
原创 98% after emitting CopyPlugin
1、参考:https://blog.csdn.net/qq_41619796/article/details/1028340872、可以使用 from ''搜索,搜索到 from ‘’,就把‘’内容填上。3、vue有时没有包含js请将:import*asmutilsfrom'@/utils/mutils'改为:constmutils=require('@/utils/mutils')...
2021-09-13 22:25:25 393
STUNClient测试工具.rar
2020-09-02
AppMonitor.rar
2020-07-24
ExliveNettyClient.zip
2020-01-10
需要的X64动态库.zip
2019-09-18
TestFluent.zip
2019-07-09
锐浪asp.net MVC html5报表显示
2017-09-15
深入解析MFC
2012-07-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人