I've only come to C languages such as C, C ++, and C #, but I decided to study machine learning, which is popular now, and studied Python. List the characteristic points seen from the C language programmer.
#
.coding:
.{}
. (Is it like VBA?)It is suitable for numerical calculation as a whole because it has no limit on the number of digits and has an imaginary number. On the other hand, it is not suitable for embedded environments where memory usage is unreadable and memory is cheap. (Well, why not use it for that purpose ...)
j
at the end to represent an imaginary number.A great variety of primitive types. What is implemented in the object type of the standard library in Java and C language is implemented in the primitive type in Python. Primitive types have advantages such as a smaller amount of code than object types and a cleaner appearance. On the other hand, there is a disadvantage that it is troublesome until you learn how to write primitive types.
False, True
is 0, 1
. (C language-like)Rich in simple sentences. Is the compound statement equivalent to Java?
return, break, continue, etc ...
and so on.In the case of C language and Java, the policy was to provide only basic functions in the language type system, and to provide convenient object types and methods in the standard library. Python, on the other hand, packed the language's type system with as many useful features as possible to improve productivity.
Productivity has improved, but compatibility is a concern. It seems that Python3 is basically not backward compatible with Python2, but I don't want Python4? To have the same thing ...
Recommended Posts