complex_num_1 = 2 + 3j
complex_num_2 = 3 + 2j
complex_num = complex_num_1 + complex_num_2
print(complex_num)
print(complex_num.real)
print(complex_num.imag)
complex_num_1 = 2 + 3j
complex_num_2 = 3 + 2j
complex_num = complex_num_1 + complex_num_2
print(complex_num)
print(complex_num.real)
print(complex_num.imag)
コメント