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