python字符串格式化输出
# 字符串拼接,字符串格式化输出 message = "我叫{0},今年{1}岁。".format("张三","19") print(message) # 特殊字符串拼接 name = ["张三","李四","王五","赵六"] new_name = &qu
# 字符串拼接,字符串格式化输出 message = "我叫{0},今年{1}岁。".format("张三","19") print(message) # 特殊字符串拼接 name = ["张三","李四","王五","赵六"] new_name = &qu
import smtplib # 内置模块 from email.mime.text import MIMEText # 内置模块 from email.util import formataddr # 内置模块 # 构建邮件内容 msg = MIMEText("领导早上好,领导辛苦了","html","utf-8") msg[