#/usr/bin/python def Z_Score(data): lenth = len(data) total = sum(data) ave = float(total)/lenth tempsum = sum([pow(data[i] - ave,2) for i in range(lenth)]) tempsum = pow(float(tempsum)/lenth,0.5) for i in range(lenth): data[i] = (data[i] - ave)/temp
使用python原生的方法实现发送email import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.utils import COMMASPACE from email import encoders import os # 发送账号信息 sender = '
python字符串replace()方法 >>> help(str.replace)Help on method_descriptor:replace(...) S.replace(old, new[, count]) -> string Return a copy of string S with all occurrences of substring old replaced by new. If the optional argument cou
python字符串的方法 ############7个基本方法############ 1:join def join(self, ab=None, pq=None, rs=None): # real signature unknown; restored from __doc__ """ Concatenate any number of strings. The string whose method is called is inserted in between ea