-
Notifications
You must be signed in to change notification settings - Fork 8
/
count.py
58 lines (33 loc) · 1.24 KB
/
count.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 2 17:56:39 2019
@author: Mr.Jia
"""
###############################处理处理路径函数,得到各个路径后调用相应函数
import os
'''
def get_path(choose):##处理处理路径函数,得到各个路径后调用相应函数
path1='C:\\迅雷下载\\test-spam'
path2='C:\\迅雷下载\\test-ham'
path3='C:\\迅雷下载\\test-mail'
if choose==1:
return path1
if choose==2:
return path2
else:
print('请输入希望测试的邮件号:')
test_num=input()
print('待测试邮件为',test_num,'号邮件!')
test_list=[path3,'\\',test_num]
test_path=''
test_path=test_path.join(test_list)
return test_path
'''
def get_path(choose):##处理处理路径函数,得到各个路径后调用相应函数
path3='C:\\迅雷下载\\test-mail'
test_num=choose
print('待测试邮件为',test_num,'号邮件!')
test_list=[path3,'\\',test_num]
test_path=''
test_path=test_path.join(test_list)
return test_path