This konjac Gugu Gu learning python for a long time and finally slowly put on a daily
Just great python3.8
Well prepared for the compiler (pycharm vscode)
Then take your own is the open book
In fact, not a lot of time to the, just finished learning c ++ taking advantage of every feeling again and see python
In accordance with Chapter II, spoke of
The above operation code is put together
name="Daniel" print("Hello Eric,would you like to learn some Python today?") print(name.upper())#全员大写 print(name.lower())#全员小写 print('Albert Einstein once said, "People who never make mistakes never try new things."') name=' Albert Einstein' message=' once said, "People who never make mistakes never try new things."' print(name) print(name.strip())#Removing the spaces on both sides of Print (name.rstrip ()) # removed space to the right of Print (name.lstrip ()) # removal spaces left Print (name.lstrip () + Message) # string connection + Print ( ' \ T ' + name.strip () + Message) # \ T is a tab-delimited name = name.strip () # so that the space after removal strip down operation will be stored, or only temporary call # Math involution Application of integer and floating- int_plus + =. 5. 9 float_plus = 5.1 + 9.1 int_minus = 5-9 float_minus = 5.2-9.1 int_mutiply = 2. 3 * float_mutiply = 3.2 * 2 int_divide =. 6 /. 3 float_divide = 6.0 /. 3 Power = 2. 3 ** # function is mandatory str string into the string of non- Age = 23 is # Print ( "A" + Age + "B") being given Print ( " A " + str (Age ) + " b " ) Import the this # Py guiding principles of Zen
python language feeling very interesting
No header, no; to the end of a sentence
Int does not need to define these types of things have changed concise
harm
Has only just begun
Write down the things right when a summary of it to yourself
Amazing thing is that even with the existence of Zen python.
Author of the book is very interesting, in his language style I seem to see Liu Rujia textbook was learning algorithms, but also have some fun
Programming is not easy
learning python I found that feeling just started to learn c ++ and Pascal's
New world
The new rules
Once again we set off
Finally py Zen (import this) the first sentence inside the bar
Beautiful is better than ugly.
Well, let's go