上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 107 下一页
摘要: 参考:https://www.jianshu.com/p/067ab9c5ee73/ 本文环境 win10 + python3.6 文件操作 一般文件操作可以通过open的方式获取一个文件对象fp,比如 # 以只读模式打开一个文件对象赋值给变量fp fp = open(r'D:\learn-pyth 阅读全文
posted @ 2021-08-19 09:09 minseo 阅读(310) 评论(0) 推荐(0)
摘要: 参考:https://www.runoob.com/python3/python3-func-bytes.html 描述 bytes 函数返回一个新的 bytes 对象,该对象是一个 0 <= x < 256 区间内的整数不可变序列。它是 bytearray 的不可变版本。 语法 class byt 阅读全文
posted @ 2021-08-16 10:31 minseo 阅读(277) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/pengjunlee/article/details/91127222 Base64简介 Base64是网络上最常见的用于传输8bit字节码的编码方式之一,Base64就是一种基于64个可打印字符(包括a-z,A-Z,0-9,/,+)来表示二进制数据 阅读全文
posted @ 2021-08-13 17:21 minseo 阅读(4452) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/royfans/p/8191253.html https://blog.51cto.com/unixman/1651922 __xxxitem__:使用 [''] 的方式操作属性时被调用 __setitem__:每当属性被赋值的时候都会调用该方法 阅读全文
posted @ 2021-08-12 08:49 minseo 阅读(1871) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/dbf-/p/11118628.html queue(队列) 主要作用 1,解耦,使程序实现松耦合(一个模块修改不会影响其他模块) 2,提高效率 队列于列表的区别 队列中数据只有一份,取出来就没有了,区别于列表,列表数据取出来只是复制了一份,队列 阅读全文
posted @ 2021-08-03 14:51 minseo 阅读(4761) 评论(0) 推荐(1)
摘要: 参考:https://www.jb51.net/article/192171.htm https://www.zhihu.com/question/404968926/answer/1677591992 一,安装桌面环境 Ubuntu 服务器通常使用命令行进行管理,并且默认没有安装桌面环境。如果你正 阅读全文
posted @ 2021-07-23 15:22 minseo 阅读(8662) 评论(1) 推荐(2)
摘要: 参考:https://blog.csdn.net/u010751000/article/details/106266625/ VS code设置Python debug调试模式方便调试 如果没有这个文件则新建 { // Use IntelliSense to learn about possible 阅读全文
posted @ 2021-07-22 11:07 minseo 阅读(290) 评论(0) 推荐(0)
摘要: Visual Studio Code默认文档编码为UTF-8 下面设置修改默认文档编码 如果设置成GBK则编辑的文档将保存为GBK编码 阅读全文
posted @ 2021-07-16 09:43 minseo 阅读(1394) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/a__int__/article/details/104600972 Python里的super().__init__()有什么作用。 直白的说super().__init__(),就是继承父类的init方法,同样可以使用super()+. 其他方法 阅读全文
posted @ 2021-07-13 10:35 minseo 阅读(277) 评论(0) 推荐(0)
摘要: 参考:https://www.jianshu.com/p/c9a0b055947b 一,什么是拓扑排序 在图论中,拓扑排序(Topological Sorting) 是一个 有向无环图(DAG,Directed Acyclic Graph) 的所有顶点的线性序列。且该序列必须满足下面两个条件 1,每 阅读全文
posted @ 2021-07-02 15:03 minseo 阅读(131) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 107 下一页