pycharm对tensoflow2.0无自动补全

28 阅读1分钟

assert tf.version.startswith(‘2.’)
在代码之前加入这句话就可以了