Pythonの例外処理

最終更新日05 Oct 2013 02:40

try:
         x = int(raw_input("Please enter a number: "))
         break
except ValueError:
    print "Oops!  That was no valid number.  Try again..."


files

サポートサイト Wikidot.com