python库以在小陆同学上执行代码 | python library to execute code on 'xiaolu'
Project description
导入库的方式:
from pyxiaolu import pyxiaolu
pyxiaolu包括以下方法:
login(username,password)
username:小陆同学用户名
password:小陆同学密码
返回值:
当不成功,返回布尔值False
当成功,返回字符串token,该token需要保存好
execute(code,token)
code:要执行的代码,可以使用三个双引号来执行多行代码
token:login方法中返回的字符串token
返回值:
当不成功,返回布尔值False
当成功,返回这些代码的stdout
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyxiaolu-0.1.2.tar.gz
(1.9 kB
view hashes)