原创 在字典中根據條件來篩選數據

在字典中根據條件來篩選數據 from random import randint #生成一個字典 d = {x:randint(60,100) for x in range(1,11)} print(d) #使用字典解析來過濾字