![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python基础
Wency_3264
这个作者很懒,什么都没留下…
展开
-
python一些基本函数有无返回值
有 str.strip() str.replace("","") str.upper() str.isdigit() str.split() "".join(str) str.find() str.count() tuple也有 dict.copy() dict,list,set有copy函数,str,tuple没有 list.deepcopy() dict.keys() dict.values() dict.items() tuple.index() list.remove(原创 2020-05-20 14:19:37 · 1214 阅读 · 2 评论 -
python关于list,dict,tuple,string,set的知识总结
firstly, all the // should be #, but for convenience, we use //.please notice that.(有没涉及到的见谅~)目录1、list2、tuple3、dictionary4、string5、set1、listlist is mutablea=[1,2,3,"hi"] print(id(a)) a[0]=2 //a[-1]是"hi" print(a,id(a)) outcome: id ar原创 2020-05-20 14:17:27 · 139 阅读 · 0 评论