• 2022-06-16
    NSMutableDictionary *mutableDic = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"lisi",@"name",[NSNumber numberWithInt:20],@"age", nil];
    [mutableDic setObject:@"89" forKey:@"num"];
    NSLog(@"mutableDic4 = %@“,mutableDic);
    控制台打印是:
    A: name = lisi;num = 89
    B: age = 20;name = lisi;num = 89
    C: age = 20;name = lisi
    D: age = 20
  • 举一反三