Files
emailsystem/simple_test.py
2025-02-25 19:50:00 +08:00

30 lines
626 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
print("Python环境测试成功")
print("邮件系统测试脚本")
# 打印系统信息
import sys
import platform
import os
print("\n系统信息:")
print(f"Python版本: {sys.version}")
print(f"操作系统: {platform.system()} {platform.version()}")
print(f"当前目录: {os.getcwd()}")
# 检查必要的库
try:
import requests
print("\n导入requests库成功")
except ImportError:
print("\n导入requests库失败")
try:
import flask
print("导入flask库成功")
except ImportError:
print("导入flask库失败")
print("\n测试完成!")