当我尝试将class Beer(Base):
....
def __str__(self):
# This method is called whenever *str* is called on a Beer instance.
# Split long string in two and wrap in brackets so Python will
# automatically concatenate them
return (f"name: {self.beer_name}, brewery: {self.brewer.brewery_name}, "
f"style: {self.style.style_name if self.style else 'MISSING'}")
for beer in query:
print(beer)
name: Bud Light, brewery: Budweiser, style: light beer
name: Stone IPA, brewery: Stone, style: MISSING
name: Americano Stout, brewery: Stone, style: india pale ale
导入Webpack的angular.min.js
文件中时,它既不会产生错误,也不会起作用。
我尝试以每种方式分别导入,但是它们都不起作用。
app.js
请提出任何建议! 谢谢!!