上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: #f= open(r"aaa/a.txt",mode='rt') # f的值是一种变量,占用的是应用程序的内存空间,此时牵扯的是两个方面的资源#print(f)##2.操作文件:读/写文件,应用程序对文件的读写请求都是向操作系统调用,然后由操作系统控制把硬盘把输入读入内存,或者写入硬盘#res=f. 阅读全文
posted @ 2020-12-08 20:56 正霜霜儿 阅读(245) 评论(0) 推荐(0) 编辑
摘要: break代表结束本层循环,而continue则用于结束本次循环,直接进入下一次循环 continue##打印1-10 除了7的数字number=11 while number>1: number -= 1 if number==7: continue # 结束掉本次循环,即本次循环continue 阅读全文
posted @ 2020-12-07 16:24 正霜霜儿 阅读(349) 评论(0) 推荐(0) 编辑
摘要: # 浅拷贝(copy):拷贝父对象,不会拷贝对象的内部的子对象。# 深拷贝(deepcopy): copy 模块的 deepcopy 方法,完全拷贝了父对象及其子对象#list2=list1 -->这个不叫拷贝 list1 =[1,2,[11,22,33],{"a":1,"b":2}] list2= 阅读全文
posted @ 2020-12-06 21:40 正霜霜儿 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 遇到这个问题的时候发现网上给的解释是:https://stackoverflow.com/questions/1250103/attributeerror-module-object-has-no-attribute 有个外国人遇到的情况如下: Not sure how but the below 阅读全文
posted @ 2020-12-06 21:38 正霜霜儿 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 选择你想要注释的部分,c t r l + / ,就可以注释啦 ps :mac 是command + / (同时按住command和/) 批量缩进:fn+tab键 阅读全文
posted @ 2020-12-05 09:27 正霜霜儿 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 来自小辕取经:https://www.cnblogs.com/xiaoyuanqujing/articles/11640866.html 我们已经知道CPU内部是含有微指令集的,我们所使用的的软件都要经过CPU内部的微指令集来完成才行。这些指令集的设计主要又被分为两种设计理念,这就是目前世界上常见到 阅读全文
posted @ 2020-12-03 15:54 正霜霜儿 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1. download the kernel package that you want to install . 2. unzip the package to the path that has enough space :use command ("df -h /usr/local ")to 阅读全文
posted @ 2020-11-27 10:14 正霜霜儿 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 来源:https://mp.weixin.qq.com/s?__biz=MzAwOTQ4MzY1Nw==&mid=2247495678&idx=1&sn=973910f021a4d54fb800cd7fa2286a92&chksm=9b5c4b18ac2bc20e033c7ed70684facb75 阅读全文
posted @ 2020-11-25 09:13 正霜霜儿 阅读(296) 评论(0) 推荐(0) 编辑
摘要: [root@localhost local]# tar -I zstd -xvf libxcrypt-4.4.17-1-x86_64.pkg.tar.zst .BUILDINFO tar: .BUILDINFO: time stamp 2020-08-27 17:25:55 is 68853652. 阅读全文
posted @ 2020-11-23 15:49 正霜霜儿 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 安装了一个新的redhat 系统过后,遇到了“This system is not registered to Red Hat Subscription Management” ,大神们都是先检查yum 和 安装新的yum 和对应新的repo 文件,我follow那些方法之后仍然还有这样的问题,我将 阅读全文
posted @ 2020-11-23 14:51 正霜霜儿 阅读(415) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页