for root, dirs, files in os.walk('C:\Users\Administrator\Desktop\9000')加个括号:for (root, dirs, files) in os.walk('C:\Users\Administrator\Desktop\9000'):