摘要: sudo apt-get install python3.8 python3 -V rm /usr/bin/python sudo ln -s /usr/bin/python3.8 /usr/bin/python PATH=/usr/bin:$PATH python -V 阅读全文
posted @ 2021-08-20 10:18 酷酷的小庄 阅读(1642) 评论(0) 推荐(0) 编辑
摘要: sudo mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates} sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/statusapt-get download dpkgsud 阅读全文
posted @ 2021-08-20 09:12 酷酷的小庄 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 此处环境为Ubuntu18.04 在当前用户的home路径下终端输入: echo alias python=python3 >> ~/.bashrc 如果是python3.7和python3.8共存,但是想默认是3.8,需要执行 echo alias python3=python3.8 >> ~/. 阅读全文
posted @ 2021-08-19 15:52 酷酷的小庄 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1,闭包的形成条件 (1)函数嵌套 (2)内部函数使用了外部函数的变量或者参数 (3)外部函数返回内部函数这个使用了外部函数变量的内部函数称为闭包 2,闭包的作用 (1)闭包可以保存外部函数内的变量不会随着外部函数调用而销毁 def func_out(): # 1,函数嵌套 num1 = 10 # 阅读全文
posted @ 2021-06-24 16:39 酷酷的小庄 阅读(55) 评论(0) 推荐(0) 编辑
摘要: ls /var/lib/dpkg/lock-frontend sudo rm -r -f /var/lib/dpkg/lock-frontend 我到这一步就可以安装了如果不行执行下一步 sudo rm -r -f /var/lib/dpkg/lock 阅读全文
posted @ 2021-06-23 23:07 酷酷的小庄 阅读(39) 评论(0) 推荐(0) 编辑
摘要: a = 1 print(type(a)) # <class 'int'> -- 整型 b = 3.1 print(type(b)) # <class 'float'> -- 浮点型 c = True print(type(c)) # <class 'bool'> -- 布尔型 d = '12345' 阅读全文
posted @ 2021-05-18 14:46 酷酷的小庄 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 网线的接口(也叫水晶头、RJ45)常用两种做法: 568A:把网线剥开,从左到右排列顺序为:白绿、绿、白橙、蓝、白蓝、橙、白棕、棕; 568B:把网线剥开,从左到右排列顺序为:白橙、橙、白绿、蓝、白蓝、绿、白棕、棕; 阅读全文
posted @ 2021-04-16 09:35 酷酷的小庄 阅读(465) 评论(0) 推荐(0) 编辑
摘要: import os import time class appInstall: def __init__(self,path): self.path = path def auto_install(self): #获取path路径下的所有文件 files=os.listdir(self.path) 阅读全文
posted @ 2021-04-16 09:27 酷酷的小庄 阅读(328) 评论(0) 推荐(0) 编辑
摘要: import time import os class App: def __init__(self,count): self.count=count def wakeup_sleep(self): cmd="adb shell input keyevent 26" os.popen(cmd) ti 阅读全文
posted @ 2021-04-16 09:25 酷酷的小庄 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Traceback (most recent call last): File "/usr/lib/command-not-found", line 28, in <module> from CommandNotFound import CommandNotFound File "/usr/lib/ 阅读全文
posted @ 2021-04-09 16:50 酷酷的小庄 阅读(1852) 评论(0) 推荐(0) 编辑
/* 鼠标点击求赞文字特效 */