会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Onsunsl's Blog
首页
订阅
管理
2021年6月19日
c++ 的bin 与lambda 实现函数参数绑定
摘要: 用过python 的同学都知道 functools.partial 和 lambda 可以实现绑定, 这在线程池调用很有用。 下面看看C++ 与python 的实现对比 #include <iostream> #include <functional> int fun(int a, int b, i
阅读全文
posted @ 2021-06-19 15:50 Onsunsl
阅读(109)
评论(0)
推荐(0)
2021年6月18日
c++ struct 结构体传递
摘要: #include<iostream> using namespace std; struct student { string name; int age; int score; }; class A{ public: A() { s = { "张三",30,80 }; } student Get(
阅读全文
posted @ 2021-06-18 00:35 Onsunsl
阅读(306)
评论(0)
推荐(0)
2021年6月16日
git submodule python实现
摘要: 概述 Git 原生的sumodules 功能无法实现将子模块存放在父级目录, 而放入子目录时候会存在多份代码,交叉依赖的问题。所以需要搭建一个脚本工具来解决多个模块之间的依赖关系。 解决模块依赖 通过配置文件指定git 仓库url、名称、分支、版本 支持解析原生的.gitmodules 文件 (优先
阅读全文
posted @ 2021-06-16 09:53 Onsunsl
阅读(643)
评论(0)
推荐(0)
2021年1月26日
捕获Pyinstaller 打包后的console异常信息
摘要: Pyinstaller console
阅读全文
posted @ 2021-01-26 20:19 Onsunsl
阅读(620)
评论(0)
推荐(0)
2021年1月19日
使用pydantic 为Python 代码做类型标注和限制
摘要: from pydantic import BaseModel class ModelTypeError(Exception): pass class ModelAttrError(Exception): pass class MyBaseModel(BaseModel): """ 带类型和只读属性拦
阅读全文
posted @ 2021-01-19 20:48 Onsunsl
阅读(863)
评论(0)
推荐(0)
2021年1月15日
Django 动态修改库名
摘要: Django 动态修改库名
阅读全文
posted @ 2021-01-15 16:30 Onsunsl
阅读(286)
评论(0)
推荐(0)
2020年12月2日
Kivy 内部嵌入web页面——CEFPython3
摘要: 在Kiv应用里嵌入web页面 环境 Windwos 10 python 3.6.6 Kivy 1.11.1 cefpython3 66.0 Demo 代码 from cefpython3 import cefpython as cef # import pygtk # import gtk impo
阅读全文
posted @ 2020-12-02 14:41 Onsunsl
阅读(1370)
评论(0)
推荐(0)
2020年11月27日
Kivy 展示柬埔寨语(Khmer) Unicode 错误解决方案
摘要: kivy 显示中文与高棉语unicode乱码或不正确的解决办法,即kivy 字体渲染bug排查过程
阅读全文
posted @ 2020-11-27 10:34 Onsunsl
阅读(1650)
评论(0)
推荐(0)
2020年10月30日
Python win32print
摘要: python call win32print print unicode
阅读全文
posted @ 2020-10-30 19:20 Onsunsl
阅读(1379)
评论(0)
推荐(0)
2020年9月12日
Pyinstaller admin权限
摘要: .exe.manifest 文件 requireAdministrator 这个是权限的关键 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly manifestVersion="1.0" xmlns="urn:sche
阅读全文
posted @ 2020-09-12 11:52 Onsunsl
阅读(719)
评论(0)
推荐(0)
下一页
公告