W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
# 导入复数数学库
import cmath
​
# 输出给定参数的对数值
print(cmath.log(1 + 1j))
print(cmath.log(1, 2.5))