forked from smarthaut/Daemon_AutoFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
60 lines (48 loc) · 1.42 KB
/
test.py
File metadata and controls
60 lines (48 loc) · 1.42 KB
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
59
60
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/4/12 10:43
# @Author : huanghe
# @Site :
# @File : test.py
# @Software: PyCharm
'''a =3
c =1
b = 2
d =b if b and a else c
print(d)
print(a and b)
and 操作,a and b a为真输出b a为假输出a
'''
'''import logging
# 创建一个logger
logger = logging.getLogger()
# 创建一个handler,用于写入日志文件
fh = logging.FileHandler('/tmp/test.log')
# 再创建一个handler,用于输出到控制台
ch = logging.StreamHandler()
# 定义handler的输出格式formatter
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
fh.setFormatter(formatter)
ch.setFormatter(formatter)
#定义一个filter
#filter = logging.Filter('mylogger.child1.child2')
#fh.addFilter(filter)
# 给logger添加handler
#logger.addFilter(filter)
logger.addHandler(fh)
logger.addHandler(ch)
# 记录一条日志
logger.debug('logger debug message')
logger.info('logger info message')
logger.warning('logger warning message')
logger.error('logger error message')
logger.critical('logger critical message')'''
'''from src.utils.file_reader import ExcelReader
from src.utils.config import DATA_PATH
dates = ExcelReader(DATA_PATH).data
for date in dates:
print(date)
print(dates[1]['search'])'''
#TYPES = {'firefox': webdriver.Firefox, 'chrome': webdriver.Chrome, 'ie': webdriver.Ie, 'phantomjs': webdriver.PhantomJS}
a = 'Fdaer'
print(a[::-1])