📜  python 如何在 ssh 中运行代码 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:08.297000             🧑  作者: Mango

代码示例1
stdout = client.exec_command('python -c "exec(\\"' + open('hello.py','r').read().encode('base64').strip('\n') + '\\".decode(\\"base64\\"))"' )[1]