java 如何判断操作系统是Linux还是Windows

2025-04-16 13:12:20
推荐回答(1个)
回答1:

String os = System.getProperty("os.name");

判断os里包含windows还是linux