import sys,os,time
from decimal import Decimal, getcontext
path=os.path.abspath('.')
if len(sys.argv)==2:
path=sys.argv[1]
exts=[]
for root,dirs,files in os.walk(os.path.expanduser(path)):
for fin in files:
bn,ext1=os.path.splitext(fin)
if not ext1 in exts:
exts.append(ext1)
if ext1:
print ext1
#小记
print getcontext().prec#来设定小数点精度(默认为28)
# i=0
# while i<10:
# print 10-i
# time.sleep(1)
# i+=1
from decimal import Decimal, getcontext
path=os.path.abspath('.')
if len(sys.argv)==2:
path=sys.argv[1]
exts=[]
for root,dirs,files in os.walk(os.path.expanduser(path)):
for fin in files:
bn,ext1=os.path.splitext(fin)
if not ext1 in exts:
exts.append(ext1)
if ext1:
print ext1
#小记
print getcontext().prec#来设定小数点精度(默认为28)
# i=0
# while i<10:
# print 10-i
# time.sleep(1)
# i+=1