我开始与谷歌应用程序引擎,并试图一些快速learning.I过这个问题,它不会对我的地方发展environment.Here发生是偶然的代码谷歌AppEngine上不打印数组值
import random, math
random.seed()
quotesArray=[]
quotesArray.append("This is a Test1")
quotesArray.append("This is a Test2")
quotesArray.append("This is a Test3")
quotesArray.append("This is a Test4")
quotesArray.append("This is a Test5")
x = int(math.floor(random.random()*343)+1)
print quotesArray[0]+" "+str(x)
在我的开发环境的输出
This is a Test1 45
在现场直播的输出是
45
任何人都可以请提供一些想法,为什么会这样?
当您使用logging.debug()而不是打印时,这也会发生吗? – 2011-03-08 22:16:06