摘要: click的简单使用 先通过一个简单的例子来认知一下click把 import click @click.command() @click.option('-p', '--port', default=('Cat', 5000), type=(str, int), help="localhost:p 阅读全文
posted @ 2020-08-26 17:46 凡璞 阅读(596) 评论(0) 推荐(0) 编辑
摘要: C++中输出变量类型的方法 在c++中输出变量或者数据类型,使用typeid().name()的方法。如下例子: #include <iostream> #include <string> using namespace std; class C{}; int main(int argc, char 阅读全文
posted @ 2020-08-26 13:44 凡璞 阅读(5763) 评论(0) 推荐(1) 编辑
摘要: C++中string与数值类型的相互转换记录 string转int、double、long string s = "123.456"; // string -> int cout << stoi(s) << endl; // string -> long cout << stol(s) << end 阅读全文
posted @ 2020-08-26 10:30 凡璞 阅读(220) 评论(0) 推荐(0) 编辑
1 2
3 4
5 6