所以这是代码,我需要以不同的方式打印输出并且不带括号。我怎么做?
phonebook = {}
n=1
line = str(input('Name and clour: '))
while line:
name, colour = line.split()
phonebook[n] = name, colour
line = str(input('Name and clour: '))
n=n+1
print(phonebook[3])
print(phonebook[1])
print(phonebook[2])
www说
相关分类