\n要加在哪才能實作這種
{ : }
{ : }
每個結構是一行一行的
uj5u.com熱心網友回復:
字典只是存盤, 你的意思要想print 好看一點 就這樣:for d in dict:
print(d,dict[d])
uj5u.com熱心網友回復:
輸入進去錯誤了,說unhashable type list,要怎么調整uj5u.com熱心網友回復:
for key,value in dict.items():print(key,":","value")
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/92357.html
