skip to main
|
skip to sidebar
Python 3000 中譯
2009年5月4日 星期一
Complex varible real and imag portion
定義complex 變數a
a=2+4j
print("a is "+str(a))
列印 real 及 imag 值
print(a.real)
print(a.imag)
結果
a is (2+4j)
2.0
4.0
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (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
檢視我的完整簡介
沒有留言:
張貼留言