首页 > 编程语言 > 详细

python operator

时间:2015-04-29 23:17:41      阅读:371      评论:0      收藏:0      [点我收藏+]

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

2. --2 >>> 2

3. ‘a‘ * 2 >>> ‘aa‘

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

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

python operator

原文:http://www.cnblogs.com/njuzwr/p/4467029.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!