题目
题目

SP25: CS-174 Sec 02 - Server Web Prog Final- Requires Respondus LockDown Browser

单项选择题

How do you pass a variable username to the template?

选项
A.render_template("profile.html", "username")
B.render_template("profile.html", username)
C.render_template("profile.html", name=username)
D.render_template("profile.html", username=username)
查看解析

查看解析

标准答案
Please login to view
思路分析
We start by restating the problem: How do you pass a variable username to the template? The available options each show a different way of calling render_template with arguments. Option 1: render_template("profile.html", "username"). Here, the second argument is the literal string "username" rather than a variable holding the username. This would pass the string "username" to the template, not the actual value of the variable, so......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!