当前位置:网站首页>列表写入txt直接去除中间的逗号
列表写入txt直接去除中间的逗号
2022-07-24 05:20:00 【Julyers】
import os
wd = os.getcwd() # 获取当前所在目录
list = ['800', '600', '0', '204', '294', '389', '450', '320', '349', '446', '482', '480', '382', '110', '376', '145', '272', '410', '387', '428', '333', '234', '330', '252', '275']
save_path = '/home/juling/Jupyter Project/test_folder'
txt = open(os.path.join(save_path, 'test.txt'), 'w')
txt.write(wd + ' ' + ' '.join(str(i) for i in list))
txt.close()
效果:
边栏推荐
- 《统计学习方法(第2版)》李航 第22章 无监督学习方法总结 思维导图笔记
- Delete the weight of the head part of the classification network pre training weight and modify the weight name
- 《机器学习》(周志华)第2章 模型选择与评估 笔记 学习心得
- 【activiti】组任务
- 读取csv文件的满足条件的行并写入另一个csv中
- Positional argument after keyword argument
- How to quickly connect CRM system and ERP system to realize the automatic flow of business processes
- Flink format series (1) -json
- 如何快速打通CRM系统和ERP系统,实现业务流程自动化流转
- 【activiti】activiti流程引擎配置类
猜你喜欢

《机器学习》(周志华) 第5章 神经网络 学习心得 笔记

电商系统PC商城模块介绍

Multi merchant mall system function disassembly lecture 06 - platform side merchant settlement agreement

Likeshop | single merchant mall system code open source no encryption -php

Connect CRM system and effect advertising, help enterprises with precision marketing, and help enterprises with precision marketing

Likeshop100% open source encryption free B2B2C multi merchant mall system

《统计学习方法(第2版)》李航 第17章 潜在语义分析 LSA LSI 思维导图笔记 及 课后习题答案(步骤详细)第十七章

多商户商城系统功能拆解04讲-平台端商家入驻

Delete the weight of the head part of the classification network pre training weight and modify the weight name

What do programmers often mean by API? What are the API types?
随机推荐
A small problem in labelme to VOC code
PyTorch 单机多卡分布式训练
多商户商城系统功能拆解03讲-平台端商家管理
西瓜书/南瓜书--第1,2章总结
Numpy数组广播规则记忆方法 array broadcast 广播原理 广播机制
SSM项目配置中问题,各种依赖等(个人使用)
学习率优化策略
OpenWRT快速配置Samba
电商系统PC商城模块介绍
The method of using bat command to quickly create system restore point
What do programmers often mean by API? What are the API types?
Small operation of statistical signal processing -- detection of deterministic DC signal in Rayleigh distributed noise
Multi merchant mall system function disassembly lecture 06 - platform side merchant settlement agreement
【activiti】网关
《统计学习方法(第2版)》李航 第22章 无监督学习方法总结 思维导图笔记
Could not load library cudnn_ cnn_ infer64_ 8.dll. Error code 126Please make sure cudnn_ cnn_ infer64_ eight
多商户商城系统功能拆解07讲-平台端商品管理
The SaaS mall system of likeshop single merchant is built, and the code is open source without encryption.
Erp+rpa opens up the enterprise information island, and the enterprise benefits are doubled
Add se channel attention module to the network