not enough values to unpack (expected 10, got
时间: 2023-09-03 21:11:47 浏览: 160
浅谈PHP中pack、unpack的详细用法
not enough values to unpack (expected 10, got 1) 是一个 Python 程序错误,表示解包时的值数量不够。这个错误通常出现在你试图将一个变量分配给多个变量的情况下,但实际上该变量只有一个值,无法分配给多个变量。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [not enough values to unpack (expected 2, got 1)](https://blog.csdn.net/weixin_35756624/article/details/129513498)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [ValueError: not enough values to unpack expected 3, got 2返回值与传递的不相同](https://blog.csdn.net/m0_64583630/article/details/126908779)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文