Closed xuxiaobo-bobo closed 2 years ago
//JavaScript function ad(a, b) {
return a + b;
}
console.log(ad.toString())
//输出 // function ad(a, b) { // // return a + b; // }
//python def ad(a,b): return a+b print(ad)
Check inspect.getsource()
inspect.getsource()
//JavaScript function ad(a, b) {
}
console.log(ad.toString())
//输出 // function ad(a, b) { // // return a + b; // }
//python def ad(a,b): return a+b print(ad)
输出
<function ad at 0x000002511B318550>