1 Star 0 Fork 152

zyy777777/e0401-file-io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
make_excel_csv.py 270 Bytes
一键复制 编辑 原始数据 按行查看 历史
zyy 提交于 2023-12-15 22:17 . zyy
import pandas as pd
df = pd.DataFrame(
{
"国家": ["中国", "美国", "俄罗斯"],
"首都": ["北京", "华盛顿", "莫斯科"],
}
)
with open("data_excel.csv", "w", newline="\r\n", encoding="utf-8-sig") as f:
df.to_csv(f, index=False)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zyy777777/e0401-file-io.git
git@gitee.com:zyy777777/e0401-file-io.git
zyy777777
e0401-file-io
e0401-file-io
master

搜索帮助