摘要: from lib2to3.pgen2 import token from urllib.request import urlopen import json import subprocess import shlex import os # 获取当前文件路径 strToken = "xxxxxxx 阅读全文
posted @ 2022-06-02 14:03 cnblogs_kk 阅读(296) 评论(0) 推荐(0)
摘要: 最近在使用conan-center下载三方库,之前是好好,突然不行了 更新conan-center对应的url,最新的为: conan-center: https://center.conan.io [Verify SSL: True] 之前默认为 https://conan.bintray.com 阅读全文
posted @ 2021-12-28 14:32 cnblogs_kk 阅读(830) 评论(0) 推荐(0)
摘要: #pragma once #include <list> #include <map> #include <mutex> #include <utility> #include <shared_mutex> // a cache which evicts the least recently use 阅读全文
posted @ 2021-12-20 18:05 cnblogs_kk 阅读(71) 评论(0) 推荐(0)
摘要: 单队列 #include "safe_queue.h" #include <functional> #include <thread> #include <vector> using WorkItem = std::function<void()>; class SimplePool { publi 阅读全文
posted @ 2021-12-17 16:07 cnblogs_kk 阅读(30) 评论(0) 推荐(0)
摘要: #pragma once #include <condition_variable> #include <mutex> #include <queue> template <typename T> class Queue { public: void push(const T &item) { { 阅读全文
posted @ 2021-12-17 15:59 cnblogs_kk 阅读(121) 评论(0) 推荐(0)
摘要: #pragma once #include <vector> #include <queue> #include <memory> #include <mutex> #include <condition_variable> #include <thread> #include <functiona 阅读全文
posted @ 2021-12-17 15:36 cnblogs_kk 阅读(46) 评论(0) 推荐(0)
摘要: // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in 阅读全文
posted @ 2021-11-19 13:10 cnblogs_kk 阅读(64) 评论(0) 推荐(0)
摘要: 在Linux/Unix系统中,你可以在脚本顶部添加以下命令让Python脚本可以像SHELL脚本一样可直接执行: #! /usr/bin/env python3 然后修改脚本权限,使其有执行权限,命令如下: $ chmod +x hello.py ./hello.py 阅读全文
posted @ 2021-05-25 09:26 cnblogs_kk 阅读(45) 评论(0) 推荐(0)
摘要: ###code #!/usr/bin/python3 import os import csv import sqlite3 curDir = os.getcwd() class Txt2Db: def startLoad(self): # open the database self.connec 阅读全文
posted @ 2021-05-21 09:11 cnblogs_kk 阅读(53) 评论(0) 推荐(0)
摘要: 最近在使用sqlite存储数据,发现如果tableName中含有"-",如"xx-yyy" 1.sqlite3.OperationalError: near "-": syntax error 在python中操作时需要将tableName用**[]**包含: CREATE TABLE[tra-16 阅读全文
posted @ 2021-05-21 08:59 cnblogs_kk 阅读(2692) 评论(0) 推荐(0)