def get_python_one_liner(gist_url):
# Note that `exec` is required for multiline statements, eval seems to only do simple expressions
# https://stackoverflow.com/questions/30671563/eval-not-working-on-multi-line-string
return "import urllib; exec(urllib.urlopen('%s').read())" % gist_url
评论列表
文章目录