10 2018 档案
摘要:http://blog.sina.com.cn/lxydjx
阅读全文
摘要:场景: 报错: 原因: json不能对np.int64或者np.float64等类型进行序列化,可以通过自定义serializer或者直接类型转换来解决。 解决方法: 显式的把 date 转换成 int 类型。
阅读全文
摘要:一、创建Server 1.Dos 命令 python -m BaseHTTPServer [port] 默认端口是8000, 2.Python 脚本启动 #coding:utf-8 ''' Created on 2018��10��29�� @author: Administrator ''' fr
阅读全文
摘要:char exchange(char c) { if (c = 'A') c = tolower(c); else if (c >= 'a' && c <= 'z') c = toupper(c); return c; } int main() { string strTmp = "short"; transform(str...
阅读全文
摘要:#include #include #include #include using namespace std; void testMap(const vector &vTmp = vector(), const map &mapParam = map()) { cout << "test end" << endl; } int main() { testMap();...
阅读全文
摘要:场景:导出数据至csv文件,股票代码(在数据库中是vchar类型)那一列前面的0丢失 解决方法: 对单元格或选区点右键,点单元格格式,在数字中点自定义,在自定义中填入6个零,然后把该csv文件保存成 xlsx文件。 效果:
阅读全文
摘要:场景:CentOS 7 运行微信告警脚本报错 原因:requests库版本问题 解决方法: sudo pip install requests urllib3 pyOpenSSL --force --upgrade sudo pip install --upgrade --force-reinsta
阅读全文