- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 C++11系列-lambda函数
转自:http://towriting.com/blog/2013/08/11/lambda-closures/C++11一个最激动人心的特性是支持创建lambda函数(有时称为闭包)。这意味着什么?一个Lambda函数是一个可以内联写在你代码中的函数(通常也会传递给另外的函数,类似于仿函数或函数指针)。使用Lambda,创建机动函数会更简单,而以前你必须创建一个有名函数。在这篇文章中,我先用...
2018-08-30 14:09:26 2386
原创 android app接入微信H5支付
android app接入微信h5支付的代码public class ThirdPay{ private static ThirdPay payPtr; private static AppActivity _activity; private String orderInfo; private static FrameLayout m_layout...
2018-08-27 18:28:34 1916
转载 C++ 用libcurl库进行http通讯网络编程
转自:http://www.cnblogs.com/moodlxs/archive/2012/10/15/2724318.html目录索引:一、LibCurl基本编程框架二、一些基本的函数三、curl_easy_setopt函数部分选项介绍四、curl_easy_perform 函数说明(error 状态码)五、libcurl使用的HTTP消息头六、获取http应答头信息...
2018-08-25 00:16:27 18601
原创 使用Python实现的icon裁剪
使用python实现的icon裁剪#!/usr/bin/python#picimport os,os.pathimport Imagecur_dir=os.path.dirname(os.path.realpath(__file__))def separateStr(symbol): temStr='' arr=[] for c in symbol: if c!='...
2018-08-09 17:15:56 570
原创 C++ 将自定义数据存储到文件
将自定义数据存储到文件并读取的代码片段:struct Stuent{ Stuent(){} Stuent(std::string n, int a, int s) :name(n), age(a), score(s) { } std::string name; int age = 0; int score = 0; void log(){ std::cout...
2018-08-07 23:25:40 2799
原创 Python文件操作
os模块:得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd()返回指定目录下的所有文件和目录名:os.listdir()删除一个文件:os.remove()删除多个目录:os.removedirs()检验给出的路径是否是一个文件:os.path.isfile()检验给出的路径是否是一个目录:os.path.isdir()判断是否是绝对路径:o...
2018-08-02 11:28:24 163
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人