This website requires JavaScript.
Explore
关于
Help
Register
Sign In
github
/
jumpserver
mirror of
https://github.com/jumpserver/jumpserver
Watch
1
Star
0
Fork
You've already forked jumpserver
0
Code
Issues
Releases
Wiki
Activity
1baacd0b2c
jumpserver
/
apps
/
common
/
utils
/
integer.py
5 lines
103 B
Python
Raw
Normal View
History
Unescape
Escape
pref: 修改 asset permission
2022-11-11 07:04:31 +00:00
def
bit
(
x
)
:
fix: action
2022-11-16 11:35:16 +00:00
if
x
<
1
:
raise
ValueError
(
"
x must be greater than 1
"
)
return
2
*
*
(
x
-
1
)