04 2020 档案
发表于 2020-04-27 17:01阅读:167评论:0推荐:0
摘要:1.变量 ${...} <div th:text="${name}"> </div> 1.2.选择表达式(星号语法) 我们不仅可以将变量表达式写为$ {...},还可以作为* {...}。这两种⽅式有⼀个重要的区别:星号语法计算所选对象⽽不是整个上下⽂的表达式。 也就是说,只要没有选定的对象,$和*
阅读全文 »
发表于 2020-04-27 16:42阅读:431评论:0推荐:0
摘要:环境:spring-boot 作用之一:jsp有jstl标签库。html就可以用thymeleaf完成数据显示,以及交互。 使用 1.添加依赖 <properties> <!-- thymeleaf2 layout1--> <thymeleaf-layout-dialect.version>2.4.
阅读全文 »
发表于 2020-04-08 11:04阅读:353评论:0推荐:0
摘要:1.输出 print('hello world') 2.定义变量 variable=5 variable2='hello' 3.用户输入 user_input=input('提示内容') 4.逻辑运算符 and #两个都为true则为true or #一个条件为true则为true not #取反
阅读全文 »