Get the App
SLTechnology News&Howtos  ›  Development  › 

How python uses the complex () function

Shulou Source: shulou.com Published: 2022-06-01 02:17:11 11月14日 Update

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!

Tags: Characters strings functions plural content more articles formal parameters good practical parameters numbers articles look knowledge grammar reference help related explanation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Apple Linux Docker MariaDB