python_L2_operator

1. i/j – division – if both are ints, result is int, represen9ng quo9ent without remainder

e.g. 3/2 = 1  3.0/2 = 1.5  but    -3/2 = -2

2. --2 >>> 2

3. 'a' * 2 >>> 'aa'

4 . 'abc'[-1] returns 'c'

5. 'world'[:-1] returns 'worl'

posted @ 2015-04-29 22:02  Rayvin  阅读(114)  评论(0编辑  收藏  举报