<code>#複數類型
x = 2.4 + 5.6j
print("\\n\\n這是一個複數:x = {0}\\n"
"它的實部是:{1}\\n"
"虛部是:{2}\\n"
"共軛複數是:{3}".format(x,x.real,x.imag,x.conjugate()))/<code>
閱讀更多 紅塵小生 的文章
2020-03-13 20:59:00 紅塵小生
<code>#複數類型
x = 2.4 + 5.6j
print("\\n\\n這是一個複數:x = {0}\\n"
"它的實部是:{1}\\n"
"虛部是:{2}\\n"
"共軛複數是:{3}".format(x,x.real,x.imag,x.conjugate()))/<code>
閱讀更多 紅塵小生 的文章