Skip to content

Commit a8fcb5f

Browse files
committed
审 b 站第二课字幕
1. 国外其实也有争论是否真的有必要区分 argument 和 parameter,个人认为需要。参数是一个非常笼统的称呼 2. 参数外部名称这个说法准确吗?比如 withEmoji,这个真的是参数的名字吗?我觉得不是。 3. @LiulietLee 麻烦以后能发现 “做小括号” 这样的问题
1 parent c51c624 commit a8fcb5f

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

subtitles/1. Introduction to iOS 11, Xcode 9 and Swift 4.srt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7955,7 +7955,7 @@ now let's say just printing the cardNumber out right here,
79557955
1592
79567956
01:20:19,448 --> 01:20:23,217
79577957
I'm going to call my flipCard. FlipCard with emoji and
7958-
我将调用我的 flipCard 函数。参数标签是 withEmoji
7958+
我将调用我的 flipCard 函数。实参标签是 withEmoji
79597959

79607960
1593
79617961
01:20:23,285 --> 01:20:27,921

subtitles/2. MVC.srt

+22-22
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,7 @@ here. And add an init to our Concentration class.
24712471
495
24722472
00:26:15,307 --> 00:26:18,374
24732473
Init. Now again, we get to have any arguments we want.
2474-
现在,我们需要得到我们想要的参数
2474+
现在,我们可以有任何我们想要的参数
24752475

24762476
496
24772477
00:26:18,443 --> 00:26:20,944
@@ -2511,17 +2511,17 @@ put them in here. Let's try and create one card.
25112511
503
25122512
00:26:44,970 --> 00:26:48,538
25132513
Let card =, maybe we'll get lucky and
2514-
let card =, 大概我们比较幸运,我们可以直接
2514+
let card =, 也许我们比较幸运
25152515

25162516
504
25172517
00:26:48,607 --> 00:26:51,675
25182518
we can just say card. We got, that worked for
2519-
Card。写好了,我们写好它让它为 Concentration
2519+
可以写 Card(),直接后面加上括号
25202520

25212521
505
25222522
00:26:51,743 --> 00:26:56,212
25232523
Concentration. Didn't work. Why didn't that work?
2524-
工作。它并不成功。这是为什么
2524+
Concentration 可以,这里却并不行。为什么
25252525

25262526
506
25272527
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.
26662666
534
26672667
00:28:31,276 --> 00:28:34,177
26682668
One is this certainly can't be right. Identifier equals
2669-
其中这个问题一定是不对的。Identifier 等于
2669+
其中,这肯定是个问题。Identifier 等于
26702670

26712671
535
26722672
00:28:34,246 --> 00:28:38,548
@@ -2676,17 +2676,17 @@ identifer? 那太奇怪了。有一件需要注意的事情是
26762676
536
26772677
00:28:38,617 --> 00:28:42,319
26782678
that in both of my inits, I didn't do an external name and
2679-
在我的两个 init 方法里,我并没有写参数标签和
2679+
在我的两个 init 方法里,我并没有写实参标签和
26802680

26812681
537
26822682
00:28:42,387 --> 00:28:44,020
26832683
an internal name. You notice that?
2684-
参数名称。你们注意到了么?
2684+
形参名称。你们注意到了么?
26852685

26862686
538
26872687
00:28:44,089 --> 00:28:46,389
26882688
I only did one, which means both the external name and
2689-
我只写了一个名字,它意味着参数标签和参数名称
2689+
我只写了一个名字,它意味着实参标签和形参名称
26902690

26912691
539
26922692
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
26962696
540
26972697
00:28:49,295 --> 00:28:52,529
26982698
that is make the internal name be different, like i.
2699-
让参数名称不同,例如 i
2699+
让形参名称不同,例如 i
27002700

27012701
541
27022702
00:28:52,598 --> 00:28:54,865
@@ -2706,7 +2706,7 @@ And then I could say identifier = i.
27062706
542
27072707
00:28:54,933 --> 00:28:57,534
27082708
You see? This is the external name,
2709-
懂了么?这是参数标签
2709+
懂了么?这是实参标签
27102710

27112711
543
27122712
00:28:57,603 --> 00:29:00,103
@@ -2716,7 +2716,7 @@ I'm using it here when I call this init.
27162716
544
27172717
00:29:00,172 --> 00:29:03,407
27182718
And this is the internal name, which I'm using inside here.
2719-
这是参数名称,我在方法内部使用它
2719+
这是形参名称,我在方法内部使用它
27202720

27212721
545
27222722
00:29:03,475 --> 00:29:06,543
@@ -2726,7 +2726,7 @@ And now it knows that this identifier means that one. But
27262726
546
27272727
00:29:06,612 --> 00:29:08,545
27282728
you know what? This is kinda gross. First of all,
2729-
但是你知道么 这是有点粗野的。首先
2729+
但是你知道么 这挺令人厌恶的。首先
27302730

27312731
547
27322732
00:29:08,613 --> 00:29:12,916
@@ -2751,7 +2751,7 @@ identifier 在这里是一个足够好的名字。所以
27512751
551
27522752
00:29:21,026 --> 00:29:23,560
27532753
I actually want it to be same internal name and
2754-
我想要它同时是参数标签和参数名称
2754+
我想要它同时是实参标签和形参名称
27552755

27562756
552
27572757
00:29:23,628 --> 00:29:28,431
@@ -2761,7 +2761,7 @@ external name. Now, inits are the one method that
27612761
553
27622762
00:29:28,500 --> 00:29:33,336
27632763
usually has the same internal name and external name. Most
2764-
拥有相同的参数标签和参数名称的方法
2764+
拥有相同的实参标签和形参名称的方法
27652765

27662766
554
27672767
00:29:33,405 --> 00:29:36,873
@@ -2791,7 +2791,7 @@ This is the parameter. This is my identifier on myself.
27912791
559
27922792
00:29:51,289 --> 00:29:58,028
27932793
Well, I can say, self. So, self., means my identifier.
2794-
所以,我可以写self. 所以 self. 意味着我的标识符
2794+
所以,我可以写 self. 因为 self. 意味着我的标识符
27952795

27962796
560
27972797
00:29:58,096 --> 00:30:01,965
@@ -3392,7 +3392,7 @@ I send it to the type card.getUniqueIdentifier.
33923392
679
33933393
00:36:43,134 --> 00:36:46,802
33943394
That's getting it from the card type. Now how am I gonna
3395-
这就是它的语法。现在我改如何实现
3395+
这就是它的语法。现在我该如何实现
33963396

33973397
680
33983398
00:36:46,871 --> 00:36:49,272
@@ -3537,12 +3537,12 @@ Back over here in our ViewController, touchCard,
35373537
708
35383538
00:38:22,934 --> 00:38:26,135
35393539
it's external name was underbar. Which means don't
3540-
它的参数标签就是一道下划线,这意味着当你调用它的时候
3540+
它的实参标签就是一道下划线,这意味着当你调用它的时候
35413541

35423542
709
35433543
00:38:26,203 --> 00:38:28,738
35443544
give an external name when you call this because remember
3545-
并没有给它一个参数标签,因为
3545+
并没有给它一个实参标签,因为
35463546

35473547
710
35483548
00:38:28,807 --> 00:38:30,873
@@ -3552,7 +3552,7 @@ touchCard 是有点像 Objective-C 一样的东西
35523552
711
35533553
00:38:30,942 --> 00:38:33,376
35543554
This target action, and so it didn't have external name and
3555-
这个目标操作,同样也没有参数标签
3555+
这个目标操作,同样也没有实参标签
35563556

35573557
712
35583558
00:38:33,444 --> 00:38:34,310
@@ -3562,7 +3562,7 @@ so we just said, hey,
35623562
713
35633563
00:38:34,379 --> 00:38:37,179
35643564
I don't want an external name. Similar kind of thing here in
3565-
我们不想要一个参数标签。与它相似,在
3565+
我们不想要一个实参标签。与它相似,在
35663566

35673567
714
35683568
00:38:37,248 --> 00:38:40,015
@@ -4727,7 +4727,7 @@ exactly the same as I did with array.
47274727
946
47284728
00:51:04,195 --> 00:51:05,694
47294729
I'm just gonna do open parentheses,
4730-
我就用做小括号
4730+
我就用左小括号
47314731

47324732
947
47334733
00:51:05,763 --> 00:51:08,063
@@ -4782,7 +4782,7 @@ ints and gives you back strings, and this is gonna be
47824782
957
47834783
00:51:37,461 --> 00:51:40,796
47844784
a string. If I alt-click, option-click on this,
4785-
这会是个字符串。如果我按住 alt/option 点击它
4785+
这会是个字符串。如果我按住 option 点击它
47864786

47874787
958
47884788
00:51:40,865 --> 00:51:44,299

0 commit comments

Comments
 (0)