Specifying exception type,,# try: nu
Specifying exception type,,# try: nu
# try: num = float(raw_input('\nEnter a number: '))except(ValueError): print 'That was not a number!'
相关内容
- Use mouse to draw a shape on canvas,shapecanvas,from Tkinter
- Content tests: isalpha, isdigit, etc,isalphaisdigit,S = 'spam' S
- Use raw input to read int value,rawinput,import sys,
- Line color,linecolor,from Tkinter
- A calculator,calculator,from Tkinter
- Draw Rectangle,drawrectangle,from Tkinter
- Writing to a Database,writingtodatabase,import MySQL
- Searching Lists,searchinglists,li = ['a', '
- tell(): Returns the current file position,returnsposition,f = open(
- Tools for Working with Lists,workinglists,# The array
评论关闭