
脚本
_毛毛雨
用心过好每一天
展开
-
shell 常用命令总结
在开发过程中难免会用到一些shell脚本命令,自己也总结了以下资料判断文件夹或文件是否存在 -d 判断文件夹是否存在 -f 判断文件是否存在 if [! -d "${filepath}"];then mkdir ${filepath} fi if [! -d "${file}"];then touch file fi以下部分命令小结echo: 输出,...原创 2018-04-06 11:56:34 · 379 阅读 · 0 评论 -
记录Python相关问题
Python2.7与Python3.0 StringIO 导入问题:try: from StringIO import StringIOexcept ImportError: from io import StringIOAttributeError: type object '_io.StringIO' has no attribute 'StringIO':在Pyt...原创 2018-04-06 12:13:45 · 787 阅读 · 0 评论