from ipywidgets import interact >>> def f(x): print(x) >>> f(5) 5 >>> f('hi') 'hi'. 建立一個數値滑竿,參數是整數 ... interact(f, x=(1, 10)) ...
確定! 回上一頁