### 背景
經(jīng)常需要從一個(gè)string 中家破,讀取python的代碼颜说,然后解析拿來(lái)用购岗。
詳見:
https://stackoverflow.com/questions/5362771/how-to-load-a-module-from-code-in-a-string
```
#coding=utf-8
import sys,imp
a = 'a = 5'
a = imp.new_module('a')
key = '''13513'''
context.ret = action.sys_getFileBin(context, key)
exec context.ret in a.__dict__
print a.a
```