Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/356.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
firebase模块的Python导入导致程序意外循环_Python_Firebase - Fatal编程技术网

firebase模块的Python导入导致程序意外循环

firebase模块的Python导入导致程序意外循环,python,firebase,Python,Firebase,因此,使用python firebase pip模块,可以生成以下代码: from firebase import firebase print 'test' 导致以下输出: test test test test test 注释掉导入,或导入任何其他模块,会导致测试按预期只打印一次。这发生在我家的两台windows机器上,使用不同版本的python。我工作的linux机器没有显示这种行为。非常奇怪。有人知道可能发生了什么吗?firebase的pip安装尚未更新,其中有一些bug。使用此版

因此,使用python firebase pip模块,可以生成以下代码:

from firebase import firebase

print 'test'
导致以下输出:

test
test
test
test
test

注释掉导入,或导入任何其他模块,会导致测试按预期只打印一次。这发生在我家的两台windows机器上,使用不同版本的python。我工作的linux机器没有显示这种行为。非常奇怪。有人知道可能发生了什么吗?

firebase的pip安装尚未更新,其中有一些bug。使用此版本后,使用最新版本就可以了

这里有一篇关于python firebase入门的非常好的博文,请查看:-