kimhung mấy anh chị cho em hỏi lệnh vòng lặp trong python như nào vậy ạ ví dụ ở php là runne: $keycap = md5(microtime_float()); file_put_contents("captcha/".$keycap.".png",curl("https://gop.captcha.garena.com/image?key=".$keycap)); $captcha = captchane(); $get = json_decode(curl("https://sso.garena.com/api/prelogin?account=".$username."&captcha_key=".$keycap."&captcha=".$captcha."&format=json&id=".microtime_float()."&app_id=10100"),true); if($get['error'] == "error_captcha") goto runne; thì python làm ntn ạ...
ngoquocdat while True: if (get[error] == "error_captcha"): // else: break: Thử cái này xem được không
kimhung ngoquocdat ngoài lệnh while có lệnh nào khác ko bác :V,kiểu em muốn dùng goto như php nó tiện hơn :V
Ngockush Ngoài While Thì ô có thể dùng for n in range(10): if get[error] == "error_captcha": // else: break: