2023.06.14
1. Support manual constant modification by locking the flag bit with a manual switch
from bdpyconsts import bdpyconsts as consts
consts.ABCD = "abcd"
# one way
consts.unlock()
consts.ABCD = "abcd"
consts.locked()
# another way
if not consts.lock:
onsts.ABCD = "abcd"
-
Notifications
You must be signed in to change notification settings - Fork 0
Python 全局自定义常量管理
License
biandoucheng/bd-py-const
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Python 全局自定义常量管理
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published