Advertisement
A_GUES

Html to Python and Pydroid

Jul 29th, 2023
1,205
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from flask import Flask, render_template_string
  2.  
  3. app = Flask(__name__)
  4.  
  5. @app.route("/")
  6. def home():
  7.     html_code = '''
  8.    <!doctype html>
  9.    <html>
  10.    <body>
  11.    <iframe class="responsive-iframe" src="https://mobile-pixel-3.alllllllll19279.repl.co/" width="450px" height="750px" style="width: 450px; height: 750px;">
  12.    </body>
  13.    </html>
  14.    '''
  15.     return render_template_string(html_code)
  16.  
  17. if __name__ == "__main__":
  18.     app.run(debug=True)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement