20180410python notes -tony Teacher Lectures
Print (' Tanzhou %s,%s in class, number of classes %d (' classroom ', ' Tony ', ' 363 ')
Practice Error Logging:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Microsoft Windows [ version 6.1.7601]
All rights reserved (c) Microsoft Corporation. All rights reserved.
C:\users\administrator>python3
Python 3.6.5 (V3.6.5:F59C0932B4, Mar 2018, 17:00:18) [MSC v.1900-bit (AMD6
4)] on Win32
Type "Help", "copyright", "credits" or "license" for more information.
>>> print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ') , ' An Tony ', 3636 ')
File "<stdin>", line 1
Print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ', ' An Tony ', 3636 ")
^
Syntaxerror:invalid syntax
>>> print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ') , ' Antony ', 3636 ')
File "<stdin>", line 1
Print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom '), ' Antony ', 3636 ')
^
Syntaxerror:invalid syntax
>>> print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ') , ' Antony ', ' 363 ')
...
...
... ^z
C:\users\administrator>python3
Python 3.6.5 (V3.6.5:F59C0932B4, Mar 2018, 17:00:18) [MSC v.1900-bit (AMD6
4)] on Win32
Type "Help", "copyright", "credits" or "license" for more information.
>>> print (' Tanzhou %s,%s in class, class number %d (' classroom ', 'Tony','363')' )
File "<stdin>", line 1
Print (' Tanzhou %s,%s in class, class number %d (' classroom ',' Tony','363')
^
Syntaxerror:invalid character in identifier
>>> A
Just keep listening.
Print ("Tony1+tony2:", Tony1+tony2)
Print ("tony1*2:", tony1*2)
Print (Tony1
def find (self, sub, Start=none, End=none)
\\\ start index, end index
Print (' Tanzhou ')
Keep listening.
20180410python Notes-tony Teacher lectures