Python/Django newcomer здесь. Я получаю синтаксическую ошибку со следующим кодом, может ли кто-нибудь помочь мне здесь? IDLE3 выделяет линию 16 «Сокровище» перед собой («Золото дурака»).Неверная синтаксическая ошибка - Python 3.5.2 Django 1.10
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'index.html', {'treasures':treasures})
class Treasure:
def __init__(self, name, value, material, location):
self.name = name
self.value = value
self.material = material
self.location = location
treasures = [
Treasure('Gold Nugget', 500.00, 'gold', "Curley's Creek, NM")
Treasure("Fool's Gold", 0, 'pyrite', "Fool's Falls, CO")
Treasure('Coffee Can', 20.00, 'tin', 'Acme, CA')
]
пропавшей без запятые между Сокровищем объектами –