using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class testTiming : MonoBehaviour { public Text t; public KeyCode currentKey; public Event e; // Use this for initialization void
from fuzzywuzzy import fuzz, process a = {'嫦娥四号探测器是用哪个型号的火箭发射的?': ['长征3B'], '嫦娥四号探测器是在我国[]发射成功的.': ['西昌发射基地']} b = {'嫦娥四号探测器是在我国[ ]发射成功的.': ['B.西昌发射基地'], '嫦娥四号探测器是用[ ]火箭发射的.': ['B.长征3B']} res = {**a, **b} c = dict(**res) n = 0 print(c) print(len(res)
字典推导: x = ['A', 'B', 'C', 'D'] y = ['Alice', 'Bob', 'Cecil', 'David'] print({i:j for i,j in zip(x,y)}) >>>{'A': 'Alice', 'B': 'Bob', 'C': 'Cecil', 'D': 'David'} 列表推导: m=[x*x for x in range(0,10)] print(m) >>> [0,1,4,9,16,25,36,49,64,81]