I want to go through a dictionary whose values are lists.
books = {'(unknown)': ['Book Title xyz', 'Book Link']}
print('books=', books)
for book_variant, book_info in books.items():
print('book_variant='), book_variant
print('book_info[0]='), book_info[0]
print('book_info[1]='), book_info[1]
The printout is:
books= {'(unknown)': ['Book Title xyz', 'Book Link']}
book_variant=
book_info[0]=
book_info[1]=
What am I doing wrong?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…