我有一个字典,其中元组作为键,列表作为值
myDict = {
(1, 9078752378): [('Smith', 'Bob'), 'Head guard'],
(2, 9097615707): [('Burdell', 'George'), 'Lifeguard'],
(3, 9048501430): [('Smith', 'Amanda'), 'Lifeguard'],
(4, 9026450912): [('Brown', 'John'), 'Lifeguard'],
(5, 9027603006): [('Flowers', 'Claudia'), 'Lifeguard'],
(6, 9055520890): [('Smith', 'Brown'), 'Head guard'],
(7, 9008197785): [('Rice', 'Sarah'), 'Lifeguard'],
(8, 9063479070): [('Dodd', 'Alex'), 'New Lifeguard'],
(9, 9072301498): [('Sparrow', 'Jack'), 'New Lifeguard'],
(10, 9084389677): [('Windsor', 'Harry'), 'New Lifeguard']
}
我完全坚持如何将此字典写入 csv 文件,以便以这种格式编写
1 9078752378 Smith Bob Head guard
..等等到9
请帮忙!!!