Skip to content

Conversation

@b95702041
Copy link

https://github.com/python/python-docs-zh-tw/issues/1167
done.
-Translated 65 messages in ipaddress module introduction
-Tested build with no errors or warnings

Copy link
Collaborator

@rockleona rockleona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1st round review,感謝你的翻譯~

@mattwang44 mattwang44 requested a review from rockleona November 16, 2025 09:38
Copy link
Collaborator

@rockleona rockleona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

請記得把以下的「程式碼」標記補上,這部分 poedit 不會自動帶上喔

Comment on lines +203 to +205
"網路物件不能設定任何主機位元。這樣做的實際效果是 192.0.2.1/24 並不描述一個網"
"路。這類定義被稱為介面物件,因為 ip-on-a-network 標記法通常用於描述電腦在給定"
"網路上的網路介面,並將在下一節中進一步說明。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"網路物件不能設定任何主機位元。這樣做的實際效果是 192.0.2.1/24 並不描述一個網"
"路。這類定義被稱為介面物件,因為 ip-on-a-network 標記法通常用於描述電腦在給定"
"網路上的網路介面,並將在下一節中進一步說明。"
"網路物件不能設定任何主機位元。這樣做的實際效果是 ``192.0.2.1/24`` 並不描述一個網"
"路。這類定義被稱為介面物件,因為 ip-on-a-network 標記法通常用於描述電腦在給定"
"網路上的網路介面,並將在下一節中進一步說明。"

Comment on lines +214 to +215
"預設情況下,嘗試建立帶有主機位元設定的網路物件會導致引發 :exc:`ValueError`。"
"若要求將額外的位元強制轉換為零,可以在建構子中傳遞旗標 strict=False: ::"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"預設情況下,嘗試建立帶有主機位元設定的網路物件會導致引發 :exc:`ValueError`。"
"若要求將額外的位元強制轉換為零,可以在建構子中傳遞旗標 strict=False: ::"
"預設情況下,嘗試建立帶有主機位元設定的網路物件會導致引發 :exc:`ValueError`。"
"若要求將額外的位元強制轉換為零,可以在建構子中傳遞旗標 ``strict=False``: ::"

Comment on lines +280 to +284
"如上所述,如果你需要描述特定網路上的位址,位址類別和網路類別都不足以滿足需"
"求。像 192.0.2.1/24 這樣的標記法通常被網路工程師以及編寫防火牆和路由器工具的"
"人用作「網路 192.0.2.0/24 上的主機 192.0.2.1」的簡寫。因此,:mod:`ipaddress` "
"提供了一組混合類別,將位址與特定網路關聯起來。建立介面的方式與定義網路物件相"
"同,只是位址部分不受限於必須是網路位址。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"如上所述,如果你需要描述特定網路上的位址,位址類別和網路類別都不足以滿足需"
"求。像 192.0.2.1/24 這樣的標記法通常被網路工程師以及編寫防火牆和路由器工具的"
"人用作「網路 192.0.2.0/24 上的主機 192.0.2.1」的簡寫。因此,:mod:`ipaddress` "
"提供了一組混合類別,將位址與特定網路關聯起來。建立介面的方式與定義網路物件相"
"同,只是位址部分不受限於必須是網路位址。"
"如上所述,如果你需要描述特定網路上的位址,位址類別和網路類別都不足以滿足需"
"求。像 ``192.0.2.1/24`` 這樣的標記法通常被網路工程師以及編寫防火牆和路由器工具的"
"人用作「網路 ``192.0.2.0/24`` 上的主機 ``192.0.2.1``」的簡寫。因此,:mod:`ipaddress` "
"提供了一組混合類別,將位址與特定網路關聯起來。建立介面的方式與定義網路物件相"
"同,只是位址部分不受限於必須是網路位址。"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants