Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # 인자 이름 지정 ### Python <code> def slope(p1=(0,0), p2=(1,1)): return (float(p2[1] - p1[1])) / (p2[0] - p1[0]) </code> ### Clojure <code clojure> (defn slope [& {:keys [p1 p2] :or {p1 [0 0] p2 [1 1]}}] (float (/ (- (p2 1) (p1 1)) (- (p2 0) (p1 0))))) </code> open/인자-이름-지정.txt Last modified: 2024/10/05 06:15by 127.0.0.1