摘要: 内置函数 一 详细见python文档,猛击这里 文件操作 操作文件时,一般需要经历如下步骤: 打开文件操作文件 一、打开文件 1 文件句柄 = file('文件路径', '模式') 1 文件句柄 = file('文件路径', '模式') 1 文件句柄 = file('文件路径', '模式') 1 文 阅读全文
posted @ 2018-01-21 16:02 hhjwqh 阅读(165) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-# @Time : 2018-01-15 20:40# @Author : hhj# @Site :# import collections#import smtplibfrom email.mime.text 阅读全文
posted @ 2018-01-21 09:35 hhjwqh 阅读(132) 评论(0) 推荐(0)
摘要: python 发送邮件实例 文件形式的邮件 [python] view plaincopy #!/usr/bin/env python3 #coding: utf-8 import smtplib from email.mime.text import MIMEText from email.hea 阅读全文
posted @ 2018-01-21 00:46 hhjwqh 阅读(227) 评论(0) 推荐(0)