How python uses the complex () function
This article is about how python uses the complex () function. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Complex () syntax class complex ([real [, imag]])
Returns the plural of real + imag*1j, or converts a string or number to plural.
If the first parameter is a string, it is interpreted as a complex number, and the function cannot be called with a second parameter.
Parameters.
_ real_:int, long, float or string.
_ imag_:int, long, float cannot be a string
Thank you for reading! This is the end of the article on "how python uses the complex () function". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!