摘要: 具体代码如下所示: from numpy import * import operator a = random.rand(4, 4) print(a) 具体报错内容如下所示: Traceback (most recent call last): File "D:/py_prj/rtl_split/ 阅读全文
posted @ 2020-12-21 14:15 burlingame 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_39779233/article/details/103224712 Python报错ModuleNotFoundError: No module named ‘numpy’ 这种情况一般是缺少numpy所致,需要安装numpy。最好使先进入到 阅读全文
posted @ 2020-12-21 10:59 burlingame 阅读(6174) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/zhxwind/p/8761618.html 文件的读写有三种形式:读、写和追加。 一、读模式 r 和读写模式 r+ 1、读模式 r 读模式r特点:(1)只能读,不能写;(2)文件不存在时会报错。 (1)例:读取当前目录下的books.txt文件 阅读全文
posted @ 2020-12-21 09:42 burlingame 阅读(1782) 评论(0) 推荐(0) 编辑