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.
Python で、ネットワーク インターフェイスの IP アドレスをその名前で取得するための短いコマンドを探しています。たとえば、socket.getaddr() では機能しませんでした。これは私の詳細です。
関数が欲しいので:
x=func('vEthernet (VIC Ethernet)')
xが10.10.255.254になるように、ipconfigを実行して解析したくありません
ありがとう