私信  •  关注

Hasee Amarathunga

Hasee Amarathunga 最近创建的主题
Hasee Amarathunga 最近回复了
6 年前
回复了 Hasee Amarathunga 创建的主题 » 如何将iterable赋给python数组变量?

试试这个

def iterator(n):
    START = input("Type start if you wan't to do this thang: ")
    numbers=[]
    while START == "start":
        total=0
        for i in range(0,n):
            num=int(input("type in number: "))
            total+=num
            numbers.append(num)
        print("Average : ",total/n)
        print(numbers)

        START = input("If that was wild for you, type start again, or type quit if that was lame: ")
        if START == "quit":
            break

iterator(20)
6 年前
回复了 Hasee Amarathunga 创建的主题 » 尽管语句在数据库中工作,PHP/MYSQL Select语句仍抛出错误

我想问题在这里。

if(sizeof($q_resultSel)>0)

将sizeof替换为count并检查它。

if(count($q_resultSel)>0)
6 年前
回复了 Hasee Amarathunga 创建的主题 » 如何修复命令python setup.py egg_info失败?

我认为问题在于你的python版本,因为要在heroku上运行它将是最新版本。