python脚本代码如下:
```
import tensorflow as tf
import numpy as np
f=open(r'./test.pb','rb') #使用pb模型
def main():
print("ok!")
def run(str):
if str=="test":return 3
print("ok!")
if __name__ == '__main__':
main()
x=run("test")
print(x)
```
如果去掉open那一句,则加载模块成功,只要包含那一句,则会失败。