摘要:
首先在安装中使用的https://www.sysgeek.cn/install-mysql-8-in-ubuntu-18-04/中的安装步骤,过程都没问题,也能本地连上,但是到远程连接的时候出现问题,弄了一早上。 最终解决方法是用的大佬的,但是在过程中发现root权限很多都没有,需要先更改权限; U 阅读全文
摘要:
推荐使用 "with"语句 以管理文件:with open("hello.txt") as hello_file: for line in hello_file: print line对于不支持使用"with"语句的类似文件的对象,使用 contextlib.closing():import con 阅读全文