skip to main
|
skip to sidebar
Python 3000 中譯
2009年5月4日 星期一
Do integer division and get integer result use //
a=8
b=5
print(type(8/5),8/5)
print(type(8//5),8/5)
print(type(8.0/5),(8.0/5))
結果
(type 'int', 1)
(type 'int', 1)
(type 'float', 1.6000000000000001)
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (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
檢視我的完整簡介
沒有留言:
張貼留言