python中文件基本操作
来源:互联网 发布:淘宝led散热片 编辑:程序博客网 时间:2024/05/23 18:54
#! /usr/bin/env python# -*- coding:utf8 -*-import osdef main(): # file= open("E:/tmp/t.txt","w+") # str = raw_input("input:") # file.write(str) # file.close() # # filePath = "E:/tmp/t.txt" # if not os.path.exists(filePath): # return # file= open(filePath,"r+") # str = file.readline() # print str # str = file.readline() # print str # file.close() os.mkdir("E:/tmp/dir")if __name__ == '__main__': main()
阅读全文
0 0
- python中文件基本操作
- python中文件基本操作
- [Python ] python中文件的基本操作
- python中文件操作基本流程
- python中文件的基本操作
- Python中文件操作
- python中文件基本操作命令及注意事项
- python中文件操作技巧
- python中文件的操作
- python中文件和目录操作
- python中文件和目录操作
- python中文件读取操作详解
- python中文件以及文件夹操作
- python中文件对象的操作小结
- python中文件读取操作及注意事项
- Python语言中文件的基本处理--Python(19)
- Python语言中文件操作实例(1)--Python(20)
- c++中文件操作的5中基本途径
- HDU6172-Array Challenge
- [py]一步一步实现tornado form验证
- 分布式应用系统服务器上下线动态感知程序开发学习笔记
- not in 和 not exists 区别
- mongodb常用命令
- python中文件基本操作
- keilc 4 编译出现的几个错误解决
- QT5.9 在线程中导出EXCLE报 CoCreateInstance failure (尚未调用 CoInitialize) 解决办法
- CFGym 101002C 状压DP
- oracle内置函数
- python之Flask(一)
- 【LeetCode】572. Subtree of Another Tree
- HDU
- 【腾讯笔试】满二叉排序树中查找三个节点的最小子树的根节点