Last night began to see, do not know how to write on Windows, looking for a few hours, finally solved, put some want to write down.
1. backslash \ Can write a logical line in multiple physical rows.
2. Tabs (tab), spaces can be used to indent, but the space applicability is large. You can use a single tab or 2 or 4 spaces, only one, get into the habit, the key is that tabs and spaces can not be mixed
3 compiled language execution efficiency is better than interpreted, because the compiler will automatically optimize the target code according to different platforms during the compilation process, and the feature is 1 compile, n run
4-25.5%2.25=-12*2.25+1.5, remainder is 1.5;25.5%2.25=11*2.25+0.75, remainder is 0.75
5Python interpreter When doing Boolean operation, as long as the calculation results can be determined in advance, it will not be back, directly return the results, called short-circuit calculation
A concise Python tutorial-December 8, 2017