mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 19:49:11 +08:00
7 lines
165 B
Python
7 lines
165 B
Python
def strtobool(value):
|
|
if(isinstance(value, str)):
|
|
value = value.lower()
|
|
if value in ("y", "yes", "on", "1", "true", "t"):
|
|
return True
|
|
return False
|