1.TypeError: 'int' object is not iterable: 场景示例: 2.TypeError: 'list' object is not callable 场景示例: ...
分类:
编程语言 时间:
2018-03-08 12:18:34
阅读次数:
212
Before you read This is a demo or practice about how to use Simple Linear Regression in scikit learn with python. Following is the package versi ...
分类:
其他好文 时间:
2018-02-28 22:57:29
阅读次数:
212
1 Shopping_Cart=[] 2 3 commodity=[("iphone",5000), 4 ("bike",200), 5 ("book",100), 6 ("computer",3000), 7 ("car",10000), 8 ] 9 salary=input("please in... ...
分类:
编程语言 时间:
2018-02-28 10:37:49
阅读次数:
214
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo ...
分类:
其他好文 时间:
2018-02-25 19:13:20
阅读次数:
143
实例小结: .isdigit() 描述:检测字符串是否只由数字组成 语法:str.isdigit() 返回值:如果字符串只包含数字则返回 True 否则返回 False enumerate() 描述:enumerate() 函数用于将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列,同 ...
分类:
其他好文 时间:
2018-02-22 21:25:35
阅读次数:
173
5) The Java Interface a) Reading Data from a Hadoop URL. 使用hadoop URL来读取数据 b) Although we focus mainly on the HDFS implementation, DistributedFileSyst ...
分类:
其他好文 时间:
2018-02-19 21:16:11
阅读次数:
198
python中enumerate()函数用法 python中enumerate()函数用法 先出一个题目:1.有一 list= [1, 2, 3, 4, 5, 6] 请打印输出:0, 1 1, 2 2, 3 3, 4 4, 5 5, 6 打印输出, 2.将 list 倒序成 [6, 5, 4, 3, ...
分类:
编程语言 时间:
2018-02-18 22:44:42
阅读次数:
254
enumerate()说明 enumerate()是python的内置函数 enumerate在字典上是枚举、列举的意思 对于一个可迭代的(iterable)/可遍历的对象(如列表、字符串),enumerate将其组成一个索引序列,利用它可以同时获得索引和值 enumerate多用于在for循环中得 ...
分类:
编程语言 时间:
2018-02-17 17:15:15
阅读次数:
156
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ...
分类:
编程语言 时间:
2018-02-15 20:58:41
阅读次数:
271
常用函数 abs() 绝对值 all()Return True if bool(x) is True for all values x in the iterable. If the iterable is empty, return True any()Return True if bool(x)... ...
分类:
其他好文 时间:
2018-02-14 22:38:27
阅读次数:
234