做完跟答案差太远了,思路太乱了
def wunianji(**wuban):
y = 0
for x in range(3):
for i in wuban:
print('{}:{}'.format(i,wuban[i][y],end=' '))
y += 1
wunianji(name=['Alice', 'Bob', 'Candy'],gender=['girl', 'boy', 'girl'],age=[36,23,21])
def wunianji(**wuban):
y = 0
for x in range(3):
for i in wuban:
print('{}:{}'.format(i,wuban[i][y],end=' '))
y += 1
wunianji(name=['Alice', 'Bob', 'Candy'],gender=['girl', 'boy', 'girl'],age=[36,23,21])
2023-12-09
举报