\n預設為換行,\t預設為TAB鍵.
所以在D:\目錄下找不到ew目錄下的ext.data檔案,將其改為raw方式輸入即可。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
複製程式碼 程式碼如下:
try:
print 1 / 0
except ZeroDivisionError:
print "integer division or modulo by zero"
finally:
print "Done"
else:
print "Continue Handle other part"
報錯如下:
D:\>python Learn.py
File "Learn.py", line 11
^
SyntaxError: invalid syntax
\n預設為換行,\t預設為TAB鍵.
所以在D:\目錄下找不到ew目錄下的ext.data檔案,將其改為raw方式輸入即可。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
複製程式碼 程式碼如下:
try:
print 1 / 0
except ZeroDivisionError:
print "integer division or modulo by zero"
finally:
print "Done"
else:
print "Continue Handle other part"
報錯如下:
D:\>python Learn.py
File "Learn.py", line 11
else:
^
SyntaxError: invalid syntax