上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 35 下一页
摘要: use 命令选中数据库 use db_name; 参考资料 http://www.imooc.com/wiki/mysqllesson/choosedb.html 阅读全文
posted @ 2022-07-02 19:36 tiansz 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 使用命令行删除一个数据库 以root身份登录mysql sudo mysql 查看已有数据库 SHOW DATABASES; 删除数据库 DROP DATABASE newdb; 查看指定的数据库是否删除成功 SHOW DATABASES; 参考资料 http://www.imooc.com/wik 阅读全文
posted @ 2022-07-02 19:30 tiansz 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 使用命令行新建一个数据库 以root身份进入 MySQL sudo mysql 查看数据库 SHOW DATABASES; 新建数据库 CREATE DATABASE newdb; 验证是否新建成功 SHOW DATABASES; 参考资料 http://www.imooc.com/wiki/mys 阅读全文
posted @ 2022-07-02 19:24 tiansz 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 使用 root 账号登录 MySQL sudo mysql 新建一个 MySQL 子账号 CREATE USER 'test'@'localhost' IDENTIFIED BY '123456Aa@'; 账号退出登录 quit; 使用子账号登录 MySQL mysql -utest -p -P33 阅读全文
posted @ 2022-07-02 17:30 tiansz 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 安装教程:https://www.myfreax.com/how-to-install-mysql-on-ubuntu-20-04/ 若提示有问题,可以从这里解决: https://blog.csdn.net/MCJPAO/article/details/105027782 以root身份登录 my 阅读全文
posted @ 2022-07-02 17:15 tiansz 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 嵌套定义函数 在函数内部定义函数 def outter(): def inner(): print('Inside inner') print('Inside outter') inner() outter() 实现信息隐藏 def outter(): def inner(): print('ins 阅读全文
posted @ 2022-07-02 14:36 tiansz 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 将函数作为第一类对象 什么是第一类对象 将对象赋值给变量 number = 123 string = "hello" list = [1, 2, 3] dict = {'name': 'tom', 'age': 12} 将对象作为参数传递 print(123) print("hello") prin 阅读全文
posted @ 2022-07-01 21:24 tiansz 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 用VS Code打开/etc/apt/sources.list源文件,然后把无效的源删除 最后在终端输入: sudo apt-get update 参考资料: https://blog.csdn.net/qq_42093887/article/details/112725907 阅读全文
posted @ 2022-06-28 01:46 tiansz 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 安装 输入如下命令,然后将deb软件包拖到终端中 sudo dpkg -i 若出现依赖问题,则输入如下命令: sudo apt-get install -f 卸载 查看软件包: sudo dpkg -l 可以一直按下方向键查看包 然后卸载对应的包: sudo dpkg -r 软件名 参考资料 htt 阅读全文
posted @ 2022-06-28 01:27 tiansz 阅读(2904) 评论(0) 推荐(0) 编辑
摘要: 克隆项目: git clone https://github.com/surajmandalcell/elementary-x.git ~/.themes/elementary-x 替换主题: gsettings set org.gnome.desktop.interface gtk-theme " 阅读全文
posted @ 2022-06-28 01:21 tiansz 阅读(67) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 35 下一页