小编Ger*_*ker的帖子

分配中的Python逻辑

鉴于这secure是一个布尔值,以下语句有何作用?

特别是第一个声明.

  1. protocol = secure and "https" or "http"
  2. newurl = "%s://%s%s" % (protocol,get_host(request),request.get_full_path())

python

2
推荐指数
3
解决办法
3084
查看次数

标签 统计

python ×1