背景:
网上 python 平台,在线环境,一直想知道某个函数是怎么实现的。
平台限制了 python package 的使用,所以 dis , inspect ,等都是不能用的。
但是可以通过 func.__code__.co_code 获取编译了的 byte string.
想问下可以通过这个 byte string 反编译成 python 的 source code 嘛。
网上 python 平台,在线环境,一直想知道某个函数是怎么实现的。
平台限制了 python package 的使用,所以 dis , inspect ,等都是不能用的。
但是可以通过 func.__code__.co_code 获取编译了的 byte string.
想问下可以通过这个 byte string 反编译成 python 的 source code 嘛。