摘要:
#coding=utf-8a = 'haha'a = "hao"print(a)s = 'Hello World!'print(s.swapcase()) #大写变小写,小写变大写print(s.capitalize()) #只是首字母变大写,其他都小写# print(s.casefold()) # 阅读全文
摘要:
#!/usr/bin/python#-*-coding:UTF-8-*- import smtplibimport timeimport os from email.mime.text import MIMETextfrom email.mime.multipart import MIMEMulti 阅读全文
摘要:
######################非固定参数################## #第一种方式:def send_alert(msg,*users):##*users 是非固定参数,将传过来的参数打包成元祖, for u in users: print("报警发送给:",u)send_al 阅读全文