skip to main
|
skip to sidebar
Python 3000 中譯
2009年5月4日 星期一
Define a function and return value
def fun1(a,b):
return abs(a-b)
print(fun1(20,5))
print(fun1(5,30))
結果
15
25
沒有留言:
張貼留言
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
追蹤者
網誌存檔
▼
2009
(9)
▼
5月
(9)
Define a function and return value
For syntax
Defin multiline string with """
Complex varible real and imag portion
Do integer division and get integer result use //
Assign values simultaenous
Use python as calculator
Float to Hexdecimal and Reverse
Integer Conversion Function
關於我自己
Unknown
檢視我的完整簡介
沒有留言:
張貼留言