摘要: 这样的一段删除空字符串的代码: def not_empty(s): return s and s.strip() print(list(filter(not_empty, ['A', '', 'B', None,'C', ' ']))) 代码很简洁,效果嘛,可以丢到 Python在线工具|菜鸟教程 阅读全文
posted @ 2020-08-24 15:21 欧清辣哨 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 文章目录 1、Shell 概述 2、Shell解析器 3、Shell脚本入门 3.1 脚本格式 3.2 编写第一个Shell脚本:helloworld 4、Shell中的变量 4.1 系统变量 4.2 自定义变量 4.3 特殊变量:$n 4.4 特殊变量:$# 4.5 特殊变量:$ *、$@ 4.6 阅读全文
posted @ 2020-08-24 14:33 欧清辣哨 阅读(732) 评论(0) 推荐(0) 编辑