![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python与深度学习
_wx1ng
这个作者很懒,什么都没留下…
展开
-
python 模块
############### Modules############### a module in Python is a file, which is intended to be imported by other Python# files. Create a module functions.py....# method 1import functionsfunctions.say_hello_to("Mike")min, max = functions.min_max(原创 2021-10-21 17:48:14 · 117 阅读 · 0 评论 -
python 文件操作
##################### file operations##################### create a filef = open("demo.txt", "w") # w -- create and writef.write("The first line of data.")f.write("The second line of data.")f.close()f = open("demo.txt", "r") # r -- readprint原创 2021-10-20 21:29:34 · 110 阅读 · 0 评论 -
numpy_1
numpy 常用方法numpy简介NumPy(Numerical Python)是Python的一种开源的数值计算扩展。这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结构要高效的多(该结构也可以用来表示矩阵(matrix)),支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。安装numpy:pip3 install --user numpy scipy matplotlib示例代码import numpy as原创 2021-10-19 22:11:12 · 244 阅读 · 0 评论