python set()、len()、type()、保留小数、EOFError
摘要:1.集合set() set()存的数据为不重复的,可以用此来过滤重复的元素。可以用&求两个set的交集 c = a&b,用|求两个set的并集 c = a | b 用for i in range a: 来遍历集合a中的元素 2.len() len()用于求各数据类型的长度,可以求列表,字符串,集合,
阅读全文
posted @ 2017-03-06 08:39
posted @ 2017-03-06 08:39
posted @ 2017-02-21 16:02
posted @ 2016-12-06 15:31
posted @ 2016-11-16 21:00