Potrzebuje pomocy przy pewnym zadaniu. Mam pewien url i kod z index.py
musze dopisac odpowiedni kod do tego url zeby wejsc na strone ktora wyswietli Question 5 success. Mam nadzieje ze ktos bedzie w stanie mi pomoc bo juz probowalem setek kombinacji, sporo przeczytalem i mi nie wychodzi.Kod:# What is the syntax for adding a GET parameter to a URL? class Q5Handler(webapp.RequestHandler) : def get(self): score = getScore(self) if ( score is None ) : return if ( self.request.get('answer') == '42' ) : if not 5 in score.scores: score.scores.append(5) score.put() self.response.out.write("Question 5 success
") else: self.response.out.write("Question 5 fail
")
z gory dziekuje za pomoc




LinkBack URL
About LinkBacks

