QChatGPT/pkg/utils/platform.py

8 lines
103 B
Python

import os
import sys
def get_platform() -> str:
"""获取当前平台"""
return sys.platform