python - 使用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:
解决方案
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)
上面的代码有效
推荐阅读
- python - 为什么我的函数返回符号而不是它们的值?
- python - 使用 pandas/numpy 替换值的更好方法
- javascript - 用户控件中的下拉列表不会在索引更改中被触发
- tree - GLMERTREE ranefstart 和偏移量
- angular - 如何在Angular中一次单击按钮
- html - CSS为选定的菜单项创建圆形指示器?
- c - 为什么将十六进制 int 转换为 char* 会向后打印?
- linux - 带有时间戳的终端命令执行和输出日志记录
- angular - Angular Routing in Github Pages
- r - 在R包textstem中,为什么stem_word("way")返回"wai"