while-loop

    0熱度

    2回答

    這裏的中間就是我有這麼遠 $awards_sql_1 = mysql_query('SELECT * FROM categories WHERE section_id = 1') or die(mysql_error()); $awards_sql_2 = mysql_query('SELECT * FROM categories WHERE section_id = 2') or die(my

    0熱度

    3回答

    好難倒了,所以我也跟着在這個問題上的意見:Stumped in the middle of a PHP loop 但現在,我有比以前更多的問題。這是我到目前爲止有: $sql = "SELECT section_name, category_name, result_level, url, winner FROM 2009_RKR_bestof INNER JOIN categories ON 2

    0熱度

    5回答

    在VB.net的while循環中執行的最大次數是多少?意思是說,它正在檢查一個等於某個值的變量,但該值永遠不會到來?在退出之前它會執行多少次代碼?有沒有一些方法來設置最大數量的執行,而不是以編程方式終止它? 感謝您的幫助。

    449熱度

    11回答

    我有想出分號和/或括號的正確組合的麻煩。我想這樣做,但在命令行一個班輪: while [ 1 ] do foo sleep 2 done

    6熱度

    5回答

    如果真有這樣的事我會想象的語法是沿 while(Integer item : group<Integer>; item > 5) { //do something } 只是想知道,如果有這樣的事情還是有辦法模仿此線的東西?

    0熱度

    3回答

    如何通過foreach或while循環使用以下示例數據? 我通過運行 $answers = pg_fetch_all ($result); 的樣本數據 [0]=> array(3) { ["answer"]=> string(7) "This is the answer" ["username"]=> string(5) "roope"

    1熱度

    4回答

    我有一個使用一個簡單的while循環顯示進度條,但似乎並不奏效,因爲我預料的腳本: count = 1 maxrecords = len(international) p = ProgressBar("Blue") t = time while count < maxrecords: print 'Processing %d of %d' % (count, maxrecords

    0熱度

    4回答

    我有我的揮杆接口 private void solveButtonMouseClicked(java.awt.event.MouseEvent evt) { step1(); } 它調用第一步以下按鈕(); private void step1(){ //step 1 solving the white cross around the yellow

    1熱度

    3回答

    我確定有更好的方法來做到這一點,但我是新手,所以我做了這個唯一的方法,我可以弄明白。問題是,我有一個腳本,它使用來自RSS提要的最新帖子更新文本文件(我從你們那裏得到了一些幫助,以弄清楚)。但我希望這個腳本是自動的,所以我做了這個: import time import os seconds = 3600 kjor = 'python vg.py' time.sleep(seconds

    1熱度

    4回答

    我是一名Python編程初學者。我寫了下面的程序,但沒有按照我的要求執行。這裏是代碼: b=0 x=0 while b<=10: print 'here is the outer loop\n',b, while x<=15: k=p[x] print'here is the inner loop\n',x, x=x+1 b=b