2020年8月5日

Python2.x和Python3.x中len()

摘要: 阅读全文

posted @ 2020-08-05 09:14 Summer儿 阅读(480) 评论(2) 推荐(1) 编辑

2020年7月27日

Ubuntu18.04 安装Docker【转】

摘要: 转自:https://www.cnblogs.com/tangzz/p/11950126.html 1.sudo apt-get remove docker.io docker-engine 2.sudo apt-get update 3.$ sudo apt-get install \ apt-t 阅读全文

posted @ 2020-07-27 14:14 Summer儿 阅读(161) 评论(0) 推荐(0) 编辑

2020年7月24日

mysql出现ERROR1698(28000):Access denied for user root@localhost错误解决方法【转】

摘要: 转自:https://www.cnblogs.com/cpl9412290130/p/9583868.html skip-grant-tables <-- add here 阅读全文

posted @ 2020-07-24 15:55 Summer儿 阅读(174) 评论(0) 推荐(0) 编辑

ubuntu使用pip安装时报错HTTPError404解决方法[转]

摘要: 亲测有效! 转自:https://blog.csdn.net/qq_42372629/article/details/97773205?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai 阅读全文

posted @ 2020-07-24 10:19 Summer儿 阅读(4350) 评论(0) 推荐(0) 编辑

2019年9月16日

1-for循环套生成器的面试题

摘要: 参考自: https://www.cnblogs.com/shuimohei/p/9686578.html https://segmentfault.com/a/1190000016577353 题目: 分析: 我们知道生成器函数和生成器表达式都很"懒",只要你不找它取值它就不执行. 函数从上到下开 阅读全文

posted @ 2019-09-16 17:56 Summer儿 阅读(272) 评论(0) 推荐(0) 编辑

2019年9月11日

rgb

摘要: 阅读全文

posted @ 2019-09-11 17:27 Summer儿 阅读(190) 评论(0) 推荐(0) 编辑

2019年8月21日

61-python基础-python3-格式化浮点数方法-%e、%f、%g

摘要: 1-%e是用科学记数法计数; %f是按指定精确格式化浮点数(默认保留6位); %g是根据数值的大小采用e或%f。 2-%f可以按长度和精度格式化浮点数,如%a.bf,a表示浮点数的长度,b表示浮点数小数点后面的精度。 (1)当%f时表示原值,默认保留小数点后6位数。 (2)%a.bf,a表示浮点数的 阅读全文

posted @ 2019-08-21 11:46 Summer儿 阅读(14010) 评论(0) 推荐(1) 编辑

2019年8月20日

60-python基础-python3-集合-集合常用方法-交集、并集、差集、对称差集-intersection(&)-union(|)-difference(-)-symmetric_difference()

摘要: 交集、并集、差集-intersection(&)-union(|)-difference(-) 1-intersection(&) s1.intersection(s2),返回s1和s2中相同部分,等价的运算符为 &. 2-union(|) s1.union(s2) :返回一个新集合,新集合包含s1 阅读全文

posted @ 2019-08-20 18:13 Summer儿 阅读(852) 评论(0) 推荐(0) 编辑

59-python基础-python3-集合-集合常用方法-判断一个集合是否是另一个集合的子集-issubset()-issuperset()

摘要: 判断一个集合是否是另一个集合的子集-issubset()-issuperset() 1-issubset() s1.issubset(s) 判断s1是否是s的子集 2-issuperset() 与issubset()相反 阅读全文

posted @ 2019-08-20 17:51 Summer儿 阅读(858) 评论(0) 推荐(0) 编辑

58-python基础-python3-集合-集合常用方法-删除元素-remove()-discard()-pop()-clear()

摘要: 删除元素-remove()-discard()-pop()-clear() 1-remove() remove()用于删除一个set中的元素,这个值在set中必须存在,如果不存在的话,会引发KeyError错误。 2-discard() discard()用于删除一个set中的元素,这个值不必一定存 阅读全文

posted @ 2019-08-20 17:36 Summer儿 阅读(1340) 评论(0) 推荐(0) 编辑

导航