import os
def getFlist(path):
for key in dict.keys():
wFile = open(writePath + '/' + key + '/Localizable.strings' ,'a')
rFile = open(readPath + '/' + dict[key],'r')
content = rFile.read()
if ("\"\"" in content):
print('b:' + key + '数据空')
print('a:' + dict[key] + '数据空')
else:
wFile.write(content)
readPath = '/Users/.../strings'
writePath = '/Users/.../Resources'
dict = {
'de.lproj': 'Localizable-de.strings',
'ja.lproj': 'Localizable-ja.strings',
'en.lproj': 'Localizable-.strings'
}
getFlist(writePath)