Home > other >  Follow Hyde to learn Python first lesson
Follow Hyde to learn Python first lesson

Time:10-24

Python is an efficient and fast programming language, it is convenient and quick
1. Let's meet in the python statements - print Chinese you mean "print" to print! For example: print (' waterfall cave) tells us computer identification of waterfall cave these three words if it is print (random) what do you think of python will identify?
2 know quotes "' this is a component of the python string, if there is no ', python will default to the data type for the other data types, rather than the string data, for example; 6 is an integer, but add '6' is a string, tips to remind the STR () function can also be other data types into a string! For example; Print (STR) (13), the output self-test, please! Warm prompt, in python is () must be in English not Chinese! (a) because the density of such Chinese than English placeholder, python does not identify,
3 2 when it comes to data types as follows: 1. The STR () to other data types into a string, 2. Int () to other data types into an integer, float () to other data into a floating point data types (1.2) in the oh,
4. Want to know what data type depends on the type function well, it is the function of query data types, example: print (type (3.14)) ps don't forget to a bracket can accommodate a data type, so must end for))
5. In python assignment symbol for=oh, middle beginners often forget to empty one cause python recognition error, (in python medium so==),=is to give it a value, example: name='head'
life is too short a word I use Python,
  • Related