钱会飞

导航

2018年3月1日 #

Python判断文件是否存在的三种方法

摘要: 正文 正文 通常在读写文件之前,需要判断文件或目录是否存在,不然某些处理方法可能会使程序出错。所以最好在做任何操作之前,先判断文件是否存在。 这里将介绍三种判断文件或文件夹是否存在的方法,分别使用os模块、Try语句、pathlib模块。 1.使用os模块 os模块中的os.path.exists( 阅读全文

posted @ 2018-03-01 01:34 钱会飞 阅读(974) 评论(0) 推荐(0)

重读 谢希仁《计算机网络》3 - 网络层和IP协议

摘要: 阅读全文

posted @ 2018-03-01 01:07 钱会飞 阅读(143) 评论(0) 推荐(0)

重读 谢希仁《计算机网络》1 - 概述

摘要: 阅读全文

posted @ 2018-03-01 01:06 钱会飞 阅读(134) 评论(0) 推荐(0)

重读 谢希仁《计算机网络》2 - 数据链路层和以太网

摘要: 阅读全文

posted @ 2018-03-01 01:06 钱会飞 阅读(123) 评论(0) 推荐(0)

Python知识点整理,基础5 - 文件操作

摘要: 阅读全文

posted @ 2018-03-01 00:39 钱会飞 阅读(103) 评论(0) 推荐(0)

Python知识点整理,基础4 - 集合操作

摘要: 阅读全文

posted @ 2018-03-01 00:37 钱会飞 阅读(96) 评论(0) 推荐(0)

Python知识点整理,基础3 - 字典操作

摘要: 阅读全文

posted @ 2018-03-01 00:36 钱会飞 阅读(129) 评论(0) 推荐(0)

Python知识点整理,基础2 - 列表操作

摘要: 阅读全文

posted @ 2018-03-01 00:34 钱会飞 阅读(168) 评论(0) 推荐(0)

Python知识点整理,基础1 - 基本语法

摘要: 阅读全文

posted @ 2018-03-01 00:25 钱会飞 阅读(143) 评论(0) 推荐(0)

Extend a root LVM partition online

摘要: There is also a quick remedy for the emergency situation when your root partition runs out of disk space. There is a feature specific to ext3 and ext4 阅读全文

posted @ 2018-03-01 00:05 钱会飞 阅读(355) 评论(0) 推荐(0)