python字符串格式化输出

# 字符串拼接,字符串格式化输出 message = "我叫{0},今年{1}岁。".format("张三","19") print(message) # 特殊字符串拼接 name = ["张三","李四","王五","赵六"] new_name = &qu

- 阅读全文 -

python发送邮件

import smtplib # 内置模块 from email.mime.text import MIMEText # 内置模块 from email.util import formataddr # 内置模块 # 构建邮件内容 msg = MIMEText("领导早上好,领导辛苦了","html","utf-8") msg[

- 阅读全文 -

浙ICP备17001150号公安备案号33088102002183