article cover
benojan 发布于 

django 接收 post 数据 python

或许是更好的方式 使用 ser = XXXXModelSerializer(...ModelSerializer) 使用 ser.isValid() 后台校验数据 """ 如果提交的数据中没有test,则test="" 如果提交的数据中有test且test=null,则test=None """ test = request.data.get("test",...
benojan 发布于 

C++ DLL的制作与使用 c/c++

制作DLL // calc.h #ifdef EXPORT_DLL #define CALC_API __declspec(dllexport) #else #define CALC_API __declspec(dllimport) #endif extern "C" { CALC_API int 加(int a, int b); CAL...
benojan 发布于 

Accelerators and WTL Dialogs c/c++

Author: Rory Buchanan Date: 2006 Introduction I searched and searched the CodeProject but never found an example on using accelerators and WTL dialogs. I have used accelerators in ...
benojan 发布于 

MFC 控件使用之ListCtrl之一 c/c++

作者:lixiaosan 时间:04/06/2006 以下未经说明,listctrl默认view 风格为report 相关类及处理函数 MFC:CListCtrl类 SDK:以 “ListView_”开头的一些宏。如 ListView_InsertColumn 1. CListCtrl 风格 LVS_ICON: 为每个item显示大图标 LVS_SMALL...
benojan 发布于 

C++ 使用regex正则表达式 c/c++

案例 #include <iostream> #include <regex> using namespace std; int main() { string str{ "ang1\tm1-n1-ng1 ang1" }; regex e{ "(^|[ \\-\\s])([mn])(g*)1" }; co...
benojan 发布于 

【涉及目录,勿公开】rustdesk服务器搭建 工具经验

[该文章已加密,请点击标题输入密码访问]
benojan 发布于 

linux mint下,语言包不齐全 工具经验

1. 补齐语言包 使用系统设置内的语言,补齐中文语言包 2. 安装中文语言包 sudo apt-get install language-pack-zh-hans language-pack-gnome-zh-hans
benojan 发布于 

linux mint下使用fcitx5-rime指南 工具经验

用户目录 $HOME/.local/share/fcitx5/rime
benojan 发布于 

linux mint下,安裝最新版nodejs,安裝yarn 工具经验

添加Node.js PPA curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - 安裝nodejs sudo apt-get install nodejs 安裝yarn sudo npm i -g yarn 添加国内源 yarn config set registry https:/...
benojan 发布于