python-
来源:互联网 发布:淘宝商品描述图片尺寸 编辑:程序博客网 时间:2024/06/03 23:48
1、文件读写
import codecs
fw = codecs.open(‘test.txt’, ‘w’, ‘utf-8’)
fr =codecs.open(‘test.txt’)
n = 10
count = 1
while(n):
fw.write(str(count))
fw.seek(0,0)
count = int(fr.read())
count +=1
fr.seek(0,0)
n -= 1
0 0
- Python
- Python
- Python
- python
- Python
- PYTHON
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- python
- Python
- Oracle12c_windows64位安装
- 软件项目管理流程总结
- CY_经验001
- Django 学习,异常解决记录
- first head html css 读书笔记
- python-
- [贪心]删数问题
- 8.读取外部存储文件
- php+mysql (解决post提交数据受限1000条)
- 机器学习入门笔记
- R中类型转换函数
- 常见的几种排序算法-插入、选择、冒泡、快排、堆排等
- 三表联级查询
- ViewDragHelper