![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
weixin_40826634
这个作者很懒,什么都没留下…
展开
-
python-元组加法
在Python中,元组(tuple)是一种不可变的序列类型,你不能直接对元组进行加法操作。但是,你可以通过一些其他方式来处理元组的“加法”。如果你想要“合并”两个元组,你可以使用加号(+)操作符,它会将两个元组序列连接起来,返回一个新的元组。print(combined_tuple) # 输出: (1, 2, 3, 4, 5, 6)如果你想对元组中的数字进行加法操作,你需要先将元组转换成列表,然后才能进行数学意义上的加法。原创 2024-06-14 11:07:03 · 269 阅读 · 0 评论 -
python-import依赖提示Segmentation fault (core dumped)解决方法
python-import依赖提示Segmentation fault (core dumped)解决方法原创 2023-01-02 00:00:00 · 1841 阅读 · 0 评论