鉴于这secure是一个布尔值,以下语句有何作用?
secure
特别是第一个声明.
protocol = secure and "https" or "http"
newurl = "%s://%s%s" % (protocol,get_host(request),request.get_full_path())
python
python ×1