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.
私は IPython を初めて使用し、実行結果をエイリアスに変数に割り当てる方法を知りたいと思っています。
標準エイリアスを使用しているとしましょう:
('ls', 'ls -F --color')
今、このエイリアスを使用して、現在のディレクトリの内容で変数を作成したいと思います:
content = <ls>
しかし、割り当ての右側がエイリアスであり、実行する必要があることを表現する方法がわかりません。
前もって感謝します。
lsあなたができるIPythonの特別なケースでfoo =!ls、cwdでファイルのリストを持つことができます。
ls
foo =!ls