面试题答案
一键面试data = {'name': 'Alice', 'age': 30, 'city': 'New York'}
formatted_str = ', '.join([f'{key.title()}: {value}' for key, value in data.items()])
print(formatted_str)
data = {'name': 'Alice', 'age': 30, 'city': 'New York'}
formatted_str = ', '.join([f'{key.title()}: {value}' for key, value in data.items()])
print(formatted_str)