Input and Output: repr(): generate representations which can be read by the interpreter,,#For objects
Input and Output: repr(): generate representations which can be read by the interpreter,,#For objects
#For objects which don't have a particular representation for human consumption, #str() will return the same value as repr(). s = 'Hello, world.'print repr(s)
- Why Use str on a doc string?,strstring,def foo(): p
- zfill(): pads a numeric string on the left with zeros,
- Read element in a zipped list,elementzipped,L1 = [1,2,
- In Python any non-zero integer value is true; zero is fa
- Complex Number Multiply: the Complex part,complexmulti
- Decimal Floating Point Arithmetic,decimalarithmetic,fr
热门文章:
相关内容
- Why Use str on a doc string?,strstring,def foo(): p
- zfill(): pads a numeric string on the left with zeros,zfillpads,# I
- Read element in a zipped list,elementzipped,L1 = [1,2,3,
- In Python any non-zero integer value is true; zero is false.,python
- Complex Number Multiply: the Complex part,complexmultiply,print 2 +
- Decimal Floating Point Arithmetic,decimalarithmetic,from decimal
- Convert String to integer (int),convertinteger,car = '123'c
- int function,function,print int('0
- Long Integer,longinteger,def c( p ) :
- octal literals,octal,print 01, 0
评论关闭