python中对于“+”符号,不一样的数据类型表现的不一样的行为

1.对于int类型,“+”表示两个数相加python 2 + 3 结果是5 2.对于str类型,“+”表示字符串的链接web 'ab' + 'cd' 结果是'abcd' 3.两个list相加,表示两个list相连svg python_list = [1, 2, 3] python_list + python_list 结果是 [1, 2, 3, 1, 2, 3] 4.对于python中的numpy
相关文章
相关标签/搜索