
python
Raecing
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
《python学习手册》(1)
第三章-如何运行程序 1.交互模式下编写代码 (1)python3.x中print函数要加括号,否则产生错误:SyntaxError: invalid syntax。 2.系统命令行和文件 (1) 运行E:\temp\script1.py 或者: 注意:运行是在Windows命令行界面下,而不是python交互模式下。 在python的shell下运行py文件—网上原创 2015-07-13 23:22:28 · 671 阅读 · 0 评论 -
【机器学习实战】Logistic回归例程调试(1)
1.在Python Shell下调用open函数打开txt文件的文件路径写法:f=open("d:/tmp.txt") 或 f=open("d://tmp.txt") 或 f=open("d:\\tmp.txt") 包含中文的路径:srcfile = r"D:/测试路径/测试文件.txt" f = open(srcfile.decode('utf8').encode('gbk')) 注意路径是用'/原创 2015-08-27 15:34:05 · 1479 阅读 · 0 评论 -
【help of python】append函数
help(append) Help on function append in module numpy.lib.function_base:append(arr, values, axis=None) Append values to the end of an array.Parameters ---------- arr : array_like Values are ap原创 2015-08-28 16:59:19 · 618 阅读 · 0 评论 -
【help of python】ones函数
>>> help(ones) Help on function ones in module numpy.core.numeric:ones(shape, dtype=None, order=’C’) Return a new array of given shape and type, filled with ones.Please refer to the documentation原创 2015-08-28 17:00:11 · 7899 阅读 · 0 评论 -
【help of python】range函数
>>> help(range) Help on built-in function range in module builtin:range(…) range([start,] stop[, step]) -> list of integersReturn a list containing an arithmetic progression of integers. range(i,原创 2015-08-28 17:05:57 · 438 阅读 · 0 评论 -
【help of Python】split
help(split) Help on function split in module numpy.lib.shape_base: split(ary, indices_or_sections, axis=0) Split an array into multiple sub-arrays of equal size.Parameters ---------原创 2015-08-28 16:07:43 · 597 阅读 · 0 评论