1, how to stop a running Python process break, as long as the break statement into the loop body, explicit exit conditions and behavior. When the end condition is reached, the loop can be ended.
2. Sometimes in a loop iteration, you want to end the current iteration and immediately proceed to the next iteration. In this case, use the continue statement to jump into the next iteration without completing the loop body of the current iteration. Break is a direct end to the entire loop body, and the loop statement after break will not execute, while continue is the loop body that ends the current iteration and enters the loop body of the next iteration.
3. None is a special constant that indicates that the variable is "empty"
4, use IsDigit function to determine whether the number, with Isalpha to determine whether the letter, Isalnum judge whether the combination of numbers and letters return value is a Boolean type
5. string to array
str = ' All-in-all '
arr = Str.split (', ')
Array to String
arr = [' A ', ' B ']
str = ', '. Join (ARR)
arr = [+ +]
str = ', '. Join (str (i) for I in ARR)
Python Learning 2