Reflection: Find the data type,reflectionfind,from types i
Reflection: Find the data type,reflectionfind,from types i
from types import *def what (x): if type(x) == IntType: print 'This is an int.' else: print 'This is something else.'what(4)what('4')
- Sort stdin input lines and send result to stdout,stdin
- sys.stdin.readline() with out error check,,import sys,
- Link Python system error stream into a file,pythonstre
- Getting user input,gettinguserinput,name = raw_i
- Catch exception throwed inside a function,exceptionthr
- Using the continue statement in a for/in structure.,st
热门文章:
相关内容
- Sort stdin input lines and send result to stdout,stdinstdout,import
- sys.stdin.readline() with out error check,,import sys,
- Link Python system error stream into a file,pythonstream,import sys
- Getting user input,gettinguserinput,name = raw_i
- Catch exception throwed inside a function,exceptionthrowed,def f():
- Using the continue statement in a for/in structure.,statementstruct
- Divided by int or by float,dividedfloat,from __futur
- Read a number and do the divide by 2,numberdivide,num = raw_in
- Loop can be applied to any 'iterable' object,applie
- if-elif-else structure,if-elif-else,import rando
评论关闭