
Python
青青草原的玫玫小羊
向往喧嚣的落寞行者
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python实现更改大量文件名
Python实现更改大量文件夹名称 想要实现文件夹名字从1-n,可以利用下面的代码: (可以更改后缀) import os path='E:\\aLearn\\daiduan' i=1 for file in os.listdir(path): if os.path.isfile(os.path.join(path,file))==True: new_name=file.replace(file,"%d.jpg"%i) os.rename(os.path.join(原创 2021-05-24 20:13:38 · 143 阅读 · 0 评论 -
ROS error: ‘nullptr’ was not declared in this scope
ROS中,编译cv_bridge时,error: ‘nullptr’ was not declared in this scope 在cv_birdge 的cmakelists.txt中添加: include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) if(CO原创 2021-04-09 16:27:57 · 698 阅读 · 0 评论 -
Ubuntu转换python版本(python2与python3转换)
Ubuntu转换版本: (以python3转向python2为例) python --version / python -V #查看默认指向的python安装版本 python2 --version / python2 -V #查看python2安装版本 python3 --version / python3 -V #查看python3安装版本 echo alias python=python2 >> ~/.bashrc #从python3转向python2 source ~/.原创 2021-02-22 19:56:28 · 229 阅读 · 0 评论