問題タブ [windows-terminal]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Python の os.uname() モジュールが Windows では動作しないが、wsl 2 (ubuntu 20.04) では動作しない
WSL2(ubuntu 20.04)でPythonでコードを書くと:
出力は次のとおりです。
しかし、Windows ターミナルで同じコードを実行すると、AttributeError が返されます。
Windows ターミナルと WSL2 の切り取りの両方がここに示されています。
Windows ターミナルの場合: こちらの画像を参照してください
WSL2(Ubuntu 20.04): こちらの画像をご覧ください
ところで:他のosモジュールは両方でファイルを動作させます