Today is the third day of the Great Motherland Festival of 2016 and the first day of my formal study of Python.
Today I learned the if judgment and the for loop mainly.
=============================
#if判断
A = 10
For I in range (10):
num = Int (input ("Please enter the number you guessed:"))
if num = = A:
Print ("Guess right, you're awesome!!!" ")
Elif num > A:
Print ("You guessed big ... ")
Else
Print ("You guessed small ... ")
--------------------------------------------
#for循环
A = 25
Print ("Guess number, you can guess 10 times")
For I in range (10):
num = Int (input ("Please enter the number you guessed:"))
if num = = A:
Print ("Guess right, you're awesome!!!" ")
Break
Elif num > A:
Count = 9-i
Print ("You guessed big, you can also guess", count, "times")
Else
Count = 9-i
Print ("You guessed small, you can also guess", count, "times")
=============================
Alex deploys the Day1 job while talking about some of the most important points for programmers:
1, the programmer's best resume:
A. Write a blog, to keep writing every day (how to feel back to the student age, Daily Diary);
B. GitHub address (already registered, place code, not familiar with how to use).
2, develop a good habit:
A. A flowchart is needed for each procedure;
B. There should be a readme for each procedure.
Pycharm Software Tips:
Multiline indent: Pressing the TAB key, the selected multiline automatically indents 4 characters;
Multi-line back shrink-forward: Press Shift+tab to select multiple lines to retract 4 characters.
Python Learning _ First day _20161003