首页 > 解决方案 > 使用justpy构建Web应用程序,程序显示没有输出

问题描述

致力于使用 justpy 构建 Web 应用程序。似乎无法找出问题所在。

这是代码: -

import justpy as jp

def app(): 
    wp=jp.QuasarPage
    h1=jp.QDiv(a=wp, text= "Analysis of Course Reviews" ,classes= "text-h2 text-weight-medium red text-center")
    p1=jp.QDiv(a=wp,text="These graphs represent course review analysis") 

    return wp

    jp.justpy(app) 

 

在运行程序时没有得到任何输出或错误。这是终端的屏幕截图:

终端 SS:

终端 SS

标签: pythonerror-handlingjustpy

解决方案


import justpy as jp

def app(): 
    wp=jp.QuasarPage()
    h1=jp.QDiv(a=wp, text= "Analysis of Course Reviews" ,classes= "text-h2 
 text-weight-medium red text-center")
    p1=jp.QDiv(a=wp,text="These graphs represent course review analysis") 

    return wp

jp.justpy(app) 

上面的代码有效


推荐阅读