@@ -9,7 +9,7 @@ msgstr ""
9
9
"Project-Id-Version : Python 3.11\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
11
"POT-Creation-Date : 2023-05-03 00:17+0000\n "
12
- "PO-Revision-Date : 2023-07-04 14:50 +0800\n "
12
+ "PO-Revision-Date : 2023-07-04 23:00 +0800\n "
13
13
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
14
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
15
15
"tw)\n "
@@ -333,8 +333,8 @@ msgid ""
333
333
"for a course by weighting quizzes at 20%, homework at 20%, a midterm exam at "
334
334
"30%, and a final exam at 30%:"
335
335
msgstr ""
336
- "支援選擇性的加權。例如,一位教授以 20% 的比重計算小考分數,20% 的比重計算作業分 "
337
- "數 ,30% 的比重計算期中考試分數,以及 30% 的比重計算期末考試分數:"
336
+ "支援選擇性的加權。例如,一位教授以 20% 的比重計算小考分數,20% 的比重計算作業 "
337
+ "分數 ,30% 的比重計算期中考試分數,以及 30% 的比重計算期末考試分數:"
338
338
339
339
#: ../../library/statistics.rst:185
340
340
msgid ""
@@ -367,18 +367,22 @@ msgid ""
367
367
"contains a zero, or if it contains a negative value. The *data* may be a "
368
368
"sequence or iterable."
369
369
msgstr ""
370
+ "若輸入的資料集為空、包含零、包含負值,則引發 :exc:`StatisticsError`。*data* "
371
+ "可為 sequence 或者 iterable。"
370
372
371
373
#: ../../library/statistics.rst:206
372
374
msgid ""
373
375
"No special efforts are made to achieve exact results. (However, this may "
374
376
"change in the future.)"
375
- msgstr ""
377
+ msgstr "目前未特別為了精確的結果進行額外的最佳化。(然而,未來或許會有。) "
376
378
377
379
#: ../../library/statistics.rst:219
378
380
msgid ""
379
381
"Return the harmonic mean of *data*, a sequence or iterable of real-valued "
380
382
"numbers. If *weights* is omitted or *None*, then equal weighting is assumed."
381
383
msgstr ""
384
+ "回傳 *data* 的調和平均數。*data* 可為實數 (real-valued) sequence 或者 "
385
+ "iterable。如果省略 *weights* 或者 *weights* 為 *None*,則假設各權重相等。"
382
386
383
387
#: ../../library/statistics.rst:223
384
388
msgid ""
@@ -387,117 +391,153 @@ msgid ""
387
391
"*b* and *c* will be equivalent to ``3/(1/a + 1/b + 1/c)``. If one of the "
388
392
"values is zero, the result will be zero."
389
393
msgstr ""
394
+ "調和平均數是資料的倒數 (reciprocal) 經過 :func:`mean` 運算過後的倒數。例如,"
395
+ "三個數 *a*,*b* 與 *c* 的調和平均數等於 ``3/(1/a + 1/b + 1/c)``。若其中一個值"
396
+ "為零,結果將為零。"
390
397
391
398
#: ../../library/statistics.rst:228
392
399
msgid ""
393
400
"The harmonic mean is a type of average, a measure of the central location of "
394
401
"the data. It is often appropriate when averaging ratios or rates, for "
395
402
"example speeds."
396
403
msgstr ""
404
+ "調和平均數是一種平均數,是衡量資料中心位置的一種方法。它通常用於比率 (ratio) "
405
+ "或率 (rate),例如速率(speed)。"
397
406
398
407
#: ../../library/statistics.rst:232
399
408
msgid ""
400
409
"Suppose a car travels 10 km at 40 km/hr, then another 10 km at 60 km/hr. "
401
410
"What is the average speed?"
402
411
msgstr ""
412
+ "假設一輛汽車以時速 40 公里的速率行駛 10 公里,然後再以時速 60 公里的速率行駛 "
413
+ "10 公里,求汽車的平均速率?"
403
414
404
415
#: ../../library/statistics.rst:240
405
416
msgid ""
406
417
"Suppose a car travels 40 km/hr for 5 km, and when traffic clears, speeds-up "
407
418
"to 60 km/hr for the remaining 30 km of the journey. What is the average "
408
419
"speed?"
409
420
msgstr ""
421
+ "假設一輛汽車以時速 40 公里的速率行駛 5 公里,然後在交通順暢時,加速到時速 60 "
422
+ "公里,以此速度行駛剩下的 30 公里。求汽車的平均速率?"
410
423
411
424
#: ../../library/statistics.rst:249
412
425
msgid ""
413
426
":exc:`StatisticsError` is raised if *data* is empty, any element is less "
414
427
"than zero, or if the weighted sum isn't positive."
415
428
msgstr ""
429
+ "若 *data* 為空、含有任何小於零的元素、或者加權總和不為正數,則引發 :exc:"
430
+ "`StatisticsError`。"
416
431
417
432
#: ../../library/statistics.rst:252
418
433
msgid ""
419
434
"The current algorithm has an early-out when it encounters a zero in the "
420
435
"input. This means that the subsequent inputs are not tested for validity. "
421
436
"(This behavior may change in the future.)"
422
437
msgstr ""
438
+ "目前的演算法設計為,若在輸入當中遇到零,則會提前退出。這意味著後續的輸入並未"
439
+ "進行有效性檢查。(這種行為在未來可能會改變。)"
423
440
424
441
#: ../../library/statistics.rst:263
425
442
msgid ""
426
443
"Return the median (middle value) of numeric data, using the common \" mean of "
427
444
"middle two\" method. If *data* is empty, :exc:`StatisticsError` is raised. "
428
445
"*data* can be a sequence or iterable."
429
446
msgstr ""
447
+ "使用常見的「中間兩數取平均」方法回傳數值資料的中位數 (中間值)。若 *data* 為"
448
+ "空,則會引發 :exc:`StatisticsError`。*data* 可為一個 sequence 或者 iterable。"
430
449
431
450
#: ../../library/statistics.rst:267
432
451
msgid ""
433
452
"The median is a robust measure of central location and is less affected by "
434
453
"the presence of outliers. When the number of data points is odd, the middle "
435
454
"data point is returned:"
436
455
msgstr ""
456
+ "中位數是一種穩健的衡量資料中心位置的方法,較不易被極端值影響。當資料點數量為"
457
+ "奇數時,會回傳中間的資料點:"
437
458
438
459
#: ../../library/statistics.rst:276
439
460
msgid ""
440
461
"When the number of data points is even, the median is interpolated by taking "
441
462
"the average of the two middle values:"
442
- msgstr ""
463
+ msgstr "當資料點數量為偶數時,中位數透過中間兩個值的平均數來插值計算: "
443
464
444
465
#: ../../library/statistics.rst:284
445
466
msgid ""
446
467
"This is suited for when your data is discrete, and you don't mind that the "
447
468
"median may not be an actual data point."
448
469
msgstr ""
470
+ "若你的資料為離散資料,並且你不介意中位數可能並非真實的資料點,那這函式適合"
471
+ "你。"
449
472
450
473
#: ../../library/statistics.rst:287
451
474
msgid ""
452
475
"If the data is ordinal (supports order operations) but not numeric (doesn't "
453
476
"support addition), consider using :func:`median_low` or :func:`median_high` "
454
477
"instead."
455
478
msgstr ""
479
+ "若你的資料為順序 (ordinal) 資料(支援排序操作)但並非數值型(不支援加法),可"
480
+ "以考慮改用 :func:`median_low` 或是 :func:`median_high` 代替。"
456
481
457
482
#: ../../library/statistics.rst:293
458
483
msgid ""
459
484
"Return the low median of numeric data. If *data* is empty, :exc:"
460
485
"`StatisticsError` is raised. *data* can be a sequence or iterable."
461
486
msgstr ""
487
+ "回傳數值型資料的低中位數 (low median)。若 *data* 為空,則引發 :exc:"
488
+ "`StatisticsError`。*data* 可為 sequence 或者 iterable。"
462
489
463
490
#: ../../library/statistics.rst:296
464
491
msgid ""
465
492
"The low median is always a member of the data set. When the number of data "
466
493
"points is odd, the middle value is returned. When it is even, the smaller "
467
494
"of the two middle values is returned."
468
495
msgstr ""
496
+ "低中位數一定會在原本的資料集當中。當資料點數量為奇數時,回傳中間值。當數量為"
497
+ "偶數時,回傳兩個中間值當中較小的值。"
469
498
470
499
#: ../../library/statistics.rst:307
471
500
msgid ""
472
501
"Use the low median when your data are discrete and you prefer the median to "
473
502
"be an actual data point rather than interpolated."
474
503
msgstr ""
504
+ "當你的資料為離散資料,且你希望中位數是實際的資料點而不是插值時,可以用低中位"
505
+ "數。"
475
506
476
507
#: ../../library/statistics.rst:313
477
508
msgid ""
478
509
"Return the high median of data. If *data* is empty, :exc:`StatisticsError` "
479
510
"is raised. *data* can be a sequence or iterable."
480
511
msgstr ""
512
+ "回傳數值型資料的高中位數 (high median)。若 *data* 為空,則引發 :exc:"
513
+ "`StatisticsError`。*data* 可為 sequence 或者 iterable。"
481
514
482
515
#: ../../library/statistics.rst:316
483
516
msgid ""
484
517
"The high median is always a member of the data set. When the number of data "
485
518
"points is odd, the middle value is returned. When it is even, the larger of "
486
519
"the two middle values is returned."
487
520
msgstr ""
521
+ "高中位數一定會在原本的資料集當中。當資料點數量為奇數時,回傳中間值。當數量為"
522
+ "偶數時,回傳兩個中間值當中較大的值。"
488
523
489
524
#: ../../library/statistics.rst:327
490
525
msgid ""
491
526
"Use the high median when your data are discrete and you prefer the median to "
492
527
"be an actual data point rather than interpolated."
493
528
msgstr ""
529
+ "當你的資料為離散資料,且你希望中位數是實際的資料點而不是插值時,可以用高中位"
530
+ "數。"
494
531
495
532
#: ../../library/statistics.rst:333
496
533
msgid ""
497
534
"Return the median of grouped continuous data, calculated as the 50th "
498
535
"percentile, using interpolation. If *data* is empty, :exc:`StatisticsError` "
499
536
"is raised. *data* can be a sequence or iterable."
500
537
msgstr ""
538
+ "回傳分組連續資料的中位數,該數值透過內插法計算第 50 百分位數而得。若 *data* "
539
+ "為空,則會引發 :exc:`StatisticsError`。*data* 可為一個 sequence 或者 "
540
+ "iterable。"
501
541
502
542
#: ../../library/statistics.rst:342
503
543
msgid ""
@@ -507,24 +547,31 @@ msgid ""
507
547
"etc. With the data given, the middle value falls somewhere in the class "
508
548
"3.5--4.5, and interpolation is used to estimate it:"
509
549
msgstr ""
550
+ "在以下範例中,資料已經四捨五入,每個值代表每組資料的中點。舉例來說,1 是組 "
551
+ "0.5--1.5 的中點,2 是組 1.5--2.5 的中點,3 是組 2.5--3.5 的中點等。根據輸入的資"
552
+ "料,中間值落在 3.5--4.5 的組別中,並使用內插法來估計它:"
510
553
511
554
#: ../../library/statistics.rst:353
512
555
msgid ""
513
556
"Optional argument *interval* represents the class interval, and defaults to "
514
557
"1. Changing the class interval naturally will change the interpolation:"
515
558
msgstr ""
559
+ "選擇性引數 *interval* 表示組距 (class interval),預設值為 1。改變組距自然會改"
560
+ "變內差值:"
516
561
517
562
#: ../../library/statistics.rst:363
518
563
msgid ""
519
564
"This function does not check whether the data points are at least *interval* "
520
565
"apart."
521
- msgstr ""
566
+ msgstr "此函式不檢查資料點是否至少間隔 *interval* 以上。 "
522
567
523
568
#: ../../library/statistics.rst:368
524
569
msgid ""
525
570
"Under some circumstances, :func:`median_grouped` may coerce data points to "
526
571
"floats. This behaviour is likely to change in the future."
527
572
msgstr ""
573
+ "在部份情況下,:func:`median_grouped` 可能會強制將資料點轉換為浮點數。這種行為"
574
+ "在未來可能會改變。"
528
575
529
576
#: ../../library/statistics.rst:373
530
577
msgid ""
@@ -579,6 +626,9 @@ msgid ""
579
626
"first encountered in the *data*. Will return more than one result if there "
580
627
"are multiple modes or an empty list if the *data* is empty:"
581
628
msgstr ""
629
+ "回傳一個 list,其組成為 *data* 中出現次數最多次的值,並按照它們在 *data* 中首"
630
+ "次出現的順序排列。如果有多個眾數,將會回傳所有結果。若 *data* 為空,則回傳空"
631
+ "的 list:"
582
632
583
633
#: ../../library/statistics.rst:433
584
634
msgid ""
@@ -612,7 +662,7 @@ msgstr ""
612
662
613
663
#: ../../library/statistics.rst:459
614
664
msgid "Raises :exc:`StatisticsError` if *data* is empty."
615
- msgstr ""
665
+ msgstr "若 *data* 為空,則引發 :exc:`StatisticsError`。 "
616
666
617
667
#: ../../library/statistics.rst:461 ../../library/statistics.rst:531
618
668
#: ../../library/statistics.rst:635 ../../library/statistics.rst:663
0 commit comments