Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
7b4483c4
Commit
7b4483c4
authored
Feb 20, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据指标波动假设检验统计
parent
d2b0dbca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
hypothesis_test.py
eda/recommended_indexs/hypothesis_test.py
+8
-4
No files found.
eda/recommended_indexs/hypothesis_test.py
View file @
7b4483c4
...
@@ -388,14 +388,18 @@ my_user2='wangzhiwei@igengmei.com'
...
@@ -388,14 +388,18 @@ my_user2='wangzhiwei@igengmei.com'
def
mail
():
def
mail
():
ret
=
True
ret
=
True
try
:
try
:
smtp
=
smtplib
.
SMTP
()
smtp
.
connect
(
'smtp.exmail.qq.com,465'
)
smtp
.
login
(
my_sender
,
my_pass
)
msg
=
MIMEText
(
mean_var_ctr_old_precise
,
'plain'
,
'utf-8'
)
msg
=
MIMEText
(
mean_var_ctr_old_precise
,
'plain'
,
'utf-8'
)
msg
[
'From'
]
=
formataddr
([
"高雅喆"
,
my_sender
])
msg
[
'From'
]
=
formataddr
([
"高雅喆"
,
my_sender
])
msg
[
'To'
]
=
my_user1
+
','
+
my_user2
msg
[
'To'
]
=
my_user1
+
','
+
my_user2
msg
[
'Subject'
]
=
str
(
datetime
.
date
.
today
())
+
"-监控指标假设检验"
msg
[
'Subject'
]
=
str
(
datetime
.
date
.
today
())
+
"-监控指标假设检验"
server
=
smtplib
.
SMTP_SSL
(
"smtp.exmail.qq.com"
,
465
)
#
server=smtplib.SMTP_SSL("smtp.exmail.qq.com", 465)
server
.
login
(
my_sender
,
my_pass
)
#
server.login(my_sender, my_pass)
s
erver
.
sendmail
(
my_sender
,[
my_user1
,
my_user2
],
msg
.
as_string
())
s
mtp
.
sendmail
(
my_sender
,[
my_user1
,
my_user2
],
msg
.
as_string
())
s
erver
.
quit
()
s
mtp
.
quit
()
except
Exception
:
except
Exception
:
ret
=
False
ret
=
False
return
ret
return
ret
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment