jupyter怎么导出文件 jupyternotebook中怎么读取excel内容?
jupyternotebook中怎么读取excel内容?首先,将excel文件另存为CSV文件;然后在jupyter笔记本中编写以下代码:导入CSV文件名=“C/users/administrator
jupyternotebook中怎么读取excel内容?
首先,将excel文件另存为CSV文件;
然后在jupyter笔记本中编写以下代码:
导入CSV
文件名=“C/users/administrator/desktop/0515。CSV“
打开(文件名)为F:
读卡器=csv.reader文件(f)
对于读卡器中的行:
打印(读卡器.line[num,row)
注意:请记住将文件名中的文件名和位置更改为计算机的相应文件名和位置