当我们获取图书的详情时,很容易用到。 book_id = 1 book = session.query(Book).get(book_id) print(book and book.to_dict()).
確定! 回上一頁