摘要: 1.py 脚本的 sys.exit([arg]) 直接调用exit(),注意是个函数要加括号,无参数默认返回码0,表示脚本运行成功。参数可以是整数也可以是其他对象,若是其他对象则返回码为1,如错误信息字符串,同时字符串内容也会输出。 # test.py print 'test' exit('erro 阅读全文
posted @ 2022-08-19 17:44 Oops!# 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 定义 set是一个无序且不重复的元素集合。 集合对象是一组无序排列可哈希的值,集合成员可以做字典中的键。集合用in和not in操作符检查成员,以len()內建函数得到集合的基数(大小),用for循环迭代集合的成员。但是因为集合本身是无序的,不可以为集合创建索引或执行切片(slice)操作,也没有键 阅读全文
posted @ 2022-08-19 17:17 Oops!# 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 定义The part of InfluxDB’s data structure that describes for how long InfluxDB keeps data (duration), how many copies of this data is stored in the clus 阅读全文
posted @ 2022-08-19 11:03 Oops!# 阅读(461) 评论(0) 推荐(0) 编辑