我在以下内容上收到无效语法:
rootdir = 'c://temp/test//files//'
for subdir, dirs, files in os.walk(rootdir):
for file in files:
fileParts = file.split('.')
if len(fileParts) > 1:
stripper = fileParts([len(fileParts)-2]
print(stripper)