随笔分类 -  python

摘要:ipynb发布到博客 将ipynb 转为 makedown 格式 在该文件目录下用终端或者 Anaconda Propt 运行如下代码: jupyter nbconvert --to markdown filename.ipynb 相应中的ipynb文件中图片会保存到该目录文件夹下 将ipynb 转 阅读全文
posted @ 2021-09-26 16:02 owo_owo 阅读(136) 评论(0) 推荐(0)
摘要:import numpy as np array = np.array([[1,2,3], [2,3,4]]) print(array) [[1 2 3] [2 3 4]] print(array) print('number of dim:', array.ndim) print('shape:' 阅读全文
posted @ 2021-09-26 15:52 owo_owo 阅读(157) 评论(0) 推荐(0)
摘要:自变量 读写文件 简单的文件写入 Text = 'This is my first test.\n This is next line.\n This is last line' print(test) my_file = open('my file.txt', 'w') my_file.wirte 阅读全文
posted @ 2021-09-24 09:31 owo_owo 阅读(33) 评论(0) 推荐(0)