12345678910111213141516171819202122232425 |
- # -*- coding: utf-8 -*-
- # @Time : 2023/8/14 14:49
- # @Author : XuJiakai
- # @File : base_utils
- # @Software: PyCharm
- import platform
- def is_windows():
- if platform.system() == "Windows":
- return True
- return False
- def get_or_none(json: dict, key: str):
- if not json:
- return None
- if key not in json:
- return None
- return json[key]
- pass
- if __name__ == '__main__':
- pass
|