iT邦幫忙

海綿寶寶 所有喜歡的回答 2392

Python 小數點運算問題

因為浮點數(flot)計算會有誤差的.若要精確度較高,可以使用 Decimalhttps://docs.python.org/3.9/library/decim...

2022-04-01 ‧ 由 chris79720 提問

python如只取最後一個括弧內的字串

def insidelastparentheses(str): return str.rpartition('(')[2].partition(')')[0...

2022-03-30 ‧ 由 chiu235 提問

[Python] find element 問題

試試看觀察以下的 a = 1 b = 2 a, b = b, a a b 因為Python有提供語法糖,無需使用暫存變數,就能做變數內容的交換. countr...

2022-03-28 ‧ 由 kaitokun 提問

#已解答~ python「遞迴」函式疑問

def sumzeroandprn(n): print(n) if n <= 1: return n return sumzeroan...

2022-03-28 ‧ 由 hsinyu1997 提問

尋找對python熟悉的人幫忙QQ

你的問題是很許多人都會碰到的問題.像你之前問的 reshape , 其實那是NumPy 的.而不是普通 Python的問題.建議你先從基本Python ->...

2022-03-28 ‧ 由 hsinyu1997 提問