【问题标题】:Building web app using justpy, program showing no output使用justpy构建Web应用程序,程序显示没有输出
【发布时间】:2021-07-03 10:19:15
【问题描述】:

正在使用 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:

【问题讨论】:

    标签: python error-handling justpy


    【解决方案1】:
    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) 
    

    以上代码有效

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-14
      • 1970-01-01
      • 2017-05-12
      • 2011-01-04
      • 2015-01-27
      • 1970-01-01
      相关资源
      最近更新 更多