Skip to content

biandoucheng/bd-py-const

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python constant manager

New features

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"

About

Python 全局自定义常量管理

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages