-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathre_patten.py
More file actions
49 lines (43 loc) · 1.04 KB
/
re_patten.py
File metadata and controls
49 lines (43 loc) · 1.04 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
__author__ = 'k22li'
#import re
#screenTexts = ['asbc', 'bd', '00:00']
#durationPatten = re.compile('\d\d:\d\d')
#for item in screenTexts:
# if durationPatten.match(item):
# temp = item
# print temp
#videoStorage = 'E:/_my_videos/'
#oldVideoFileList = self.file.getFolderContent(videoStorage)[0]
#self.comment(oldVideoFileList)
#
#newVideoFileList = self.file.getFolderContent(videoStorage)[0]
#self.comment(newVideoFileList)
#oldVideoFileList = ['20131025-0001.3gp', '20131025-0002.3gp']
#newVideoFileList = ['20131025-0001.3gp', '20131025-0002.3gp', '20131025-0003.3gp']
#
#
#
#fileName = [item for item in newVideoFileList if item not in oldVideoFileList].pop()
#
#print fileName, len(fileName)
#
#import sys
#
#print sys.argv
#script, fileName = sys.argv
#
#print script, fileName
#def assert_equal(k, v):
# return k==v
#
#testDict = {'a' : 'thinking', 'b' : 'meaning'}
#
#k = testDict.get('a', None)
#
#print assert_equal(k, testDict)
#print testDict
#
#testDict.get('b', 'test')
#
#print testDict
from selenium import webdriver