Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何OS's architecture在服务器端找到使用 Dart?
OS's architecture
您可以使用Platform该类:
Platform
import 'dart:io'; main() { print(Platform.operatingSystem); print(Platform.numberOfProcessors); }
如果Platform类还不够,您还可以创建一个新进程并执行一些命令以查看它是否返回有意义的内容(例如执行ps以检索进程等)。
ps