logo
  • 教程列表
  • SO官方文檔
  • 數學模組
    • 圓形地板 ceil trunc
    • 三角
    • 對數
    • 常量
    • 無窮大和 NaN(不是數字)
    • 更快取冪的動力
    • 複製標誌
    • 虛數
    • 複數和 cmath 模組
  1. StackOverflow 文件
  2. Python Language 教程
  3. 數學模組
  4. 虛數

虛數

Created: November-22, 2018

Python 中的虛數用跟隨目標數字的 j 或 J 表示。

1j         # Equivalent to the square root of -1.
1j * 1j    # = (-1+0j)
  • 複數和 cmath 模組
  • 複製標誌

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明