'tuple' object has no attribute 'get'
$def with(r)
<html>
<head></head>
<body>
<h1> </h1>
<ul>
$for l in r:
<li>$l[0] - $l[1] - $l.get('title')</li>
</ul>
</body>
</html>
$l.get('title')用get不行,用$[0],$[1]可以,什么原因
$def with(r)
<html>
<head></head>
<body>
<h1> </h1>
<ul>
$for l in r:
<li>$l[0] - $l[1] - $l.get('title')</li>
</ul>
</body>
</html>
$l.get('title')用get不行,用$[0],$[1]可以,什么原因
2018-06-09
举报