forked from RalphHan/Lip-Reading
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.py
36 lines (33 loc) · 1018 Bytes
/
start.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
## -*- coding: utf-8 -*-
#import sys, getopt
#def main(argv):
# inputfile = ''
# outputfile = ''
# try:
# opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="])
# except getopt.GetoptError:
# print ('test.py -i <inputfile> -o <outputfile>')
# sys.exit(2)
# for opt, arg in opts:
# if opt == '-h':
# print ('test.py -i <inputfile> -o <outputfile>')
# sys.exit()
# elif opt in ("-i", "--ifile"):
# inputfile = arg
# elif opt in ("-o", "--ofile"):
# outputfile = arg
# print ('输入的文件为:', inputfile)
# print ('输出的文件为:', outputfile)
if __name__ == "__main__":
a=0
class LossHistory:
def __init__(self):
#super(FooChild,self).__init__() #使用super函数
self.a=0
def pt(self):
self.a+=1
if self.a%4==0:
print("ok")
his=LossHistory();
for i in range(20):
his.pt()