diy1.py 120 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 a ={"张三":18,"李四":19} if "王五" in a print("存在") else: a['王五']=20 print(a)