@@ -2471,7 +2471,7 @@ here. And add an init to our Concentration class.
2471
2471
495
2472
2472
00:26:15,307 --> 00:26:18,374
2473
2473
Init. Now again, we get to have any arguments we want.
2474
- 现在,我们需要得到我们想要的参数
2474
+ 现在,我们可以有任何我们想要的参数
2475
2475
2476
2476
496
2477
2477
00:26:18,443 --> 00:26:20,944
@@ -2511,17 +2511,17 @@ put them in here. Let's try and create one card.
2511
2511
503
2512
2512
00:26:44,970 --> 00:26:48,538
2513
2513
Let card =, maybe we'll get lucky and
2514
- let card =, 大概我们比较幸运,我们可以直接
2514
+ let card =, 也许我们比较幸运
2515
2515
2516
2516
504
2517
2517
00:26:48,607 --> 00:26:51,675
2518
2518
we can just say card. We got, that worked for
2519
- 写 Card。写好了,我们写好它让它为 Concentration
2519
+ 可以写 Card( ) ,直接后面加上括号
2520
2520
2521
2521
505
2522
2522
00:26:51,743 --> 00:26:56,212
2523
2523
Concentration. Didn't work. Why didn't that work?
2524
- 工作。它并不成功。这是为什么 ?
2524
+ Concentration 可以,这里却并不行。为什么 ?
2525
2525
2526
2526
506
2527
2527
00:26:56,281 --> 00:27:00,083
@@ -2666,7 +2666,7 @@ got a couple of problems with that, we're trying to do that.
2666
2666
534
2667
2667
00:28:31,276 --> 00:28:34,177
2668
2668
One is this certainly can't be right. Identifier equals
2669
- 其中这个问题一定是不对的 。Identifier 等于
2669
+ 其中,这肯定是个问题 。Identifier 等于
2670
2670
2671
2671
535
2672
2672
00:28:34,246 --> 00:28:38,548
@@ -2676,17 +2676,17 @@ identifer? 那太奇怪了。有一件需要注意的事情是
2676
2676
536
2677
2677
00:28:38,617 --> 00:28:42,319
2678
2678
that in both of my inits, I didn't do an external name and
2679
- 在我的两个 init 方法里,我并没有写参数标签和
2679
+ 在我的两个 init 方法里,我并没有写实参标签和
2680
2680
2681
2681
537
2682
2682
00:28:42,387 --> 00:28:44,020
2683
2683
an internal name. You notice that?
2684
- 参数名称 。你们注意到了么?
2684
+ 形参名称 。你们注意到了么?
2685
2685
2686
2686
538
2687
2687
00:28:44,089 --> 00:28:46,389
2688
2688
I only did one, which means both the external name and
2689
- 我只写了一个名字,它意味着参数标签和参数名称
2689
+ 我只写了一个名字,它意味着实参标签和形参名称
2690
2690
2691
2691
539
2692
2692
00:28:46,458 --> 00:28:49,226
@@ -2696,7 +2696,7 @@ the internal name is the same. So one thing I could do to fix
2696
2696
540
2697
2697
00:28:49,295 --> 00:28:52,529
2698
2698
that is make the internal name be different, like i.
2699
- 让参数名称不同 ,例如 i
2699
+ 让形参名称不同 ,例如 i
2700
2700
2701
2701
541
2702
2702
00:28:52,598 --> 00:28:54,865
@@ -2706,7 +2706,7 @@ And then I could say identifier = i.
2706
2706
542
2707
2707
00:28:54,933 --> 00:28:57,534
2708
2708
You see? This is the external name,
2709
- 懂了么?这是参数标签
2709
+ 懂了么?这是实参标签
2710
2710
2711
2711
543
2712
2712
00:28:57,603 --> 00:29:00,103
@@ -2716,7 +2716,7 @@ I'm using it here when I call this init.
2716
2716
544
2717
2717
00:29:00,172 --> 00:29:03,407
2718
2718
And this is the internal name, which I'm using inside here.
2719
- 这是参数名称 ,我在方法内部使用它
2719
+ 这是形参名称 ,我在方法内部使用它
2720
2720
2721
2721
545
2722
2722
00:29:03,475 --> 00:29:06,543
@@ -2726,7 +2726,7 @@ And now it knows that this identifier means that one. But
2726
2726
546
2727
2727
00:29:06,612 --> 00:29:08,545
2728
2728
you know what? This is kinda gross. First of all,
2729
- 但是你知道么 这是有点粗野的 。首先
2729
+ 但是你知道么 这挺令人厌恶的 。首先
2730
2730
2731
2731
547
2732
2732
00:29:08,613 --> 00:29:12,916
@@ -2751,7 +2751,7 @@ identifier 在这里是一个足够好的名字。所以
2751
2751
551
2752
2752
00:29:21,026 --> 00:29:23,560
2753
2753
I actually want it to be same internal name and
2754
- 我想要它同时是参数标签和参数名称
2754
+ 我想要它同时是实参标签和形参名称
2755
2755
2756
2756
552
2757
2757
00:29:23,628 --> 00:29:28,431
@@ -2761,7 +2761,7 @@ external name. Now, inits are the one method that
2761
2761
553
2762
2762
00:29:28,500 --> 00:29:33,336
2763
2763
usually has the same internal name and external name. Most
2764
- 拥有相同的参数标签和参数名称的方法
2764
+ 拥有相同的实参标签和形参名称的方法
2765
2765
2766
2766
554
2767
2767
00:29:33,405 --> 00:29:36,873
@@ -2791,7 +2791,7 @@ This is the parameter. This is my identifier on myself.
2791
2791
559
2792
2792
00:29:51,289 --> 00:29:58,028
2793
2793
Well, I can say, self. So, self., means my identifier.
2794
- 所以,我可以写, self. 所以 self. 意味着我的标识符
2794
+ 所以,我可以写 self. 因为 self. 意味着我的标识符
2795
2795
2796
2796
560
2797
2797
00:29:58,096 --> 00:30:01,965
@@ -3392,7 +3392,7 @@ I send it to the type card.getUniqueIdentifier.
3392
3392
679
3393
3393
00:36:43,134 --> 00:36:46,802
3394
3394
That's getting it from the card type. Now how am I gonna
3395
- 这就是它的语法。现在我改如何实现
3395
+ 这就是它的语法。现在我该如何实现
3396
3396
3397
3397
680
3398
3398
00:36:46,871 --> 00:36:49,272
@@ -3537,12 +3537,12 @@ Back over here in our ViewController, touchCard,
3537
3537
708
3538
3538
00:38:22,934 --> 00:38:26,135
3539
3539
it's external name was underbar. Which means don't
3540
- 它的参数标签就是一道下划线 ,这意味着当你调用它的时候
3540
+ 它的实参标签就是一道下划线 ,这意味着当你调用它的时候
3541
3541
3542
3542
709
3543
3543
00:38:26,203 --> 00:38:28,738
3544
3544
give an external name when you call this because remember
3545
- 并没有给它一个参数标签 ,因为
3545
+ 并没有给它一个实参标签 ,因为
3546
3546
3547
3547
710
3548
3548
00:38:28,807 --> 00:38:30,873
@@ -3552,7 +3552,7 @@ touchCard 是有点像 Objective-C 一样的东西
3552
3552
711
3553
3553
00:38:30,942 --> 00:38:33,376
3554
3554
This target action, and so it didn't have external name and
3555
- 这个目标操作,同样也没有参数标签
3555
+ 这个目标操作,同样也没有实参标签
3556
3556
3557
3557
712
3558
3558
00:38:33,444 --> 00:38:34,310
@@ -3562,7 +3562,7 @@ so we just said, hey,
3562
3562
713
3563
3563
00:38:34,379 --> 00:38:37,179
3564
3564
I don't want an external name. Similar kind of thing here in
3565
- 我们不想要一个参数标签 。与它相似,在
3565
+ 我们不想要一个实参标签 。与它相似,在
3566
3566
3567
3567
714
3568
3568
00:38:37,248 --> 00:38:40,015
@@ -4727,7 +4727,7 @@ exactly the same as I did with array.
4727
4727
946
4728
4728
00:51:04,195 --> 00:51:05,694
4729
4729
I'm just gonna do open parentheses,
4730
- 我就用做小括号
4730
+ 我就用左小括号
4731
4731
4732
4732
947
4733
4733
00:51:05,763 --> 00:51:08,063
@@ -4782,7 +4782,7 @@ ints and gives you back strings, and this is gonna be
4782
4782
957
4783
4783
00:51:37,461 --> 00:51:40,796
4784
4784
a string. If I alt-click, option-click on this,
4785
- 这会是个字符串。如果我按住 alt/ option 点击它
4785
+ 这会是个字符串。如果我按住 option 点击它
4786
4786
4787
4787
958
4788
4788
00:51:40,865 --> 00:51:44,299
0 commit comments