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))
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言