Exercise24、25(return一個元組, split, sorted, pop, help, triple-quotes)

ex24.py secret_formula(started)函數的返回值爲jelly_beans, jars, crates 所以它到底是個啥, 然後是這麼個東西: 這是個元組, 元素不可修改。 結論: return 幾個值, 相當於返回了一個包含這些元素的元組。 ex25.py 一: 函數清單: (1)split() (2)sorted() (3)pop() (4)help() 首先進入pyt
相關文章
相關標籤/搜索