Skip to content

Instantly share code, notes, and snippets.

@fereria
Created September 6, 2016 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/df03793503dccba6396a2c2f6bd0a99e to your computer and use it in GitHub Desktop.
Save fereria/df03793503dccba6396a2c2f6bd0a99e to your computer and use it in GitHub Desktop.
# test.py ファイル
def test_script(arg):
print arg
# ↑を実行しようとした場合
G = {}
execfile("C:/test.py", G)
G['test_script']("hello world!!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment