打印Python字典的前十个键值

print(list(vocab.items())[:10]) 

发布了44 篇原创文章 · 获赞 0 · 访问量 1912

猜你喜欢

转载自blog.csdn.net/weixin_39331401/article/details/104495405