結果?=?字典()
如果?len(lista)?==?len(列表b):
為了什麽?我?在?範圍(len(lista)):
結果[str(a[i])]?=?列表b[i]
回歸?結果
否則:
錯誤?=?"合並列表的長度不同"
回歸?錯誤
答?=?List(input("請輸入第壹個數組元素:"))
b?=?List(input("請輸入第二個數組元素:"))
打印?(listtodict(a,b))