Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita80ea97

Browse files
committed
fix doctest
1 parent5a08f39 commita80ea97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Doc/library/enum.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,11 +1046,11 @@ Utilities and Decorators
10461046
two's-complement, and the leading bit always indicates sign
10471047
(0=positive, 1=negative).
10481048

1049-
>>>from enumimport enum
1049+
>>>import enum
10501050
>>>enum.bin(10)
1051-
'0b0 1010'
1051+
...'0b0 1010'
10521052
>>>enum.bin(~10)# ~10 is -11
1053-
'0b1 0101'
1053+
...'0b1 0101'
10541054

10551055
..versionadded::3.11
10561056

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp