04 2021 档案
摘要:import sys class test_class(): def hello(self): print(sys._getframe().f_code.co_name) print(sys._getframe().f_code.co_filename) #当前文件名,可以通过__file__获得
阅读全文
摘要:1下载地址: https://github.com/protocolbuffers/protobuf/releases 最好是下载-all的包,因为里面的依赖文件比较全,不然还需要下载各种依赖,可能会遇到各种报错,我这里下载的是3.11.2版本,自己根据情况下面对应的版本. 2如果下载最新的 git
阅读全文
摘要:在对glog进行make操作时报错如下 解决办法:重新安装gflags和glog,按如下方式进行安装: 1)安装gflags git clone https://github.com/gflags/gflags.git cd gflags mkdir build && cd build cmake
阅读全文