loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • python回傳兩個值
  • 離開本站
你即將離開本站

並前往https://python3-cookbook.readthedocs.io/zh_CN/latest/c07/p04_return_multiple_values_from_function.html

7.4 返回多个值的函数— python3-cookbook 3.0.0 文档

问题¶. 你希望构造一个可以返回多个值的函数. 解决方案¶. 为了能返回多个值,函数直接return一个元组就行了。例如:. >>> def myfun(): ... return 1, 2, 3 ... >>> a, b ...

確定! 回上一頁

查詢 「python回傳兩個值」的人也找了:

  1. python return用法
  2. python return兩個list
  3. Return 2 個值
  4. Python return
  5. Python return 數值
  6. Python 回 傳 字串
  7. Python return multiple values
  8. Python 沒有 return

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿