daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @app.route("/kostka")
  2. def kostka():
  3.     return str(randint(1,6))
  4.  
  5. @app.route("/kostka_v2/<variable>")
  6. def kostka_v2(variable):
  7.     return str(randint(1,int(variable)))
  8.  
  9. @app.route("/kostka_graficzna")
  10. def kostka_graficzna():
  11.     random = randint(1,6)
  12.  
  13.     if (random == 1):
  14.         return '<img src="1.jpg" width=300 height=300>'
  15.     if (random == 2):
  16.         return '<img src="2.png" width=300 height=300>'
  17.     if (random == 3):
  18.         return '<img src="3.png" width=300 height=300>'
  19.     if (random == 4):
  20.         return '<img src="4.png" width=300 height=300>'
  21.     if (random == 5):
  22.         return '<img src="2.png" width=300 height=300>'
  23.     if (random == 6):
  24.         return '<img src="6.png" width=300 height=300>'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top