Gimy
2020年6月5日 星期五
python list
list to dict 字典
countries = ['China', 'Japan', 'North Korea', 'South Korea', 'Taiwan', 'Thailand']
capitals = ['Beijing', 'Tokyo', 'Pyongyang', 'Seoul', 'Taipei', 'Bangkok']
d = dict(zip(countries,capitals))
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言