摘要: #include <iostream> #include <string> #include <vector> int main(){ std::string infile = "./infile.txt"; std::ifstream in(infile.c_str()); // 将string对 阅读全文
posted @ 2021-08-23 15:51 esctrionsit 阅读(111) 评论(0) 推荐(0) 编辑
摘要: # https://my.oschina.net/u/3375733/blog/1827778 # https://blog.csdn.net/qq_40015566/article/details/90169882 # https://newsn.net/say/nginx-subs_filter 阅读全文
posted @ 2021-08-23 15:30 esctrionsit 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 通过c/c编写动态链接库,再用Python调用写好的函数,可以有效利用c/c程序的高效与Python的便捷。Python的ctypes库提供了相对便捷的clib调用。 下述代码在Python3中成功运行,但是Python2会报错,原因尚未深究。 C++ #include <iostream> #in 阅读全文
posted @ 2021-08-23 15:07 esctrionsit 阅读(329) 评论(0) 推荐(0) 编辑