我有格式的明細表: flist = [1, 2, 4, 5, 418, 711, 736, 1389, 1478, 1582...]
我的代碼來創建一個字典上面「的flist」每每個元素列表中的內容: test = " "
for x in (range(len(d[13]))):
test += (d[13][x])
d[13] = test
例如,內容元素的字典中的「13
如果我有一個符合Codable協議像這樣一個結構: enum AnimalType: String, Codable {
case dog
case cat
case bird
case hamster
}
struct Pet: Codable {
var name: String
var animalType: AnimalTy