diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241119-mvc.md" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241119-mvc.md" index 91d0487ecbd000e7602a49f7de1e836d8832ddf6..3985e082fa5279f852df1d416aa8d354d12313db 100644 --- "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241119-mvc.md" +++ "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241119-mvc.md" @@ -17,9 +17,114 @@ action,本质上其实是一个方法,那方法的三要素是:函数名 ## 作业 ### linux -1-5题电脑问题,无法实现 +1. 任务:尝试使用以下几种方式分别登录服务器,说明它们分别的注意事项,并说明它们之间的区别 + - ssh客户端 + - tabby应用 + - xShell + - putty +2. 任务:更新软件源,命令:apt update,并了解这一步的实际用处和意义 +![](./img/1.png) +3. 任务:更新软件和补丁,命令:apt upgrade -y,并了解这一步的实际用处意义 +![](./img/2.png) +4. 任务:熟悉并完成以下练习 + 1.查看当前目录下的文件和文件夹 + 命令:ls + ![](./img/5-1.png) + 2.查看当前路径 + + 命令:pwd +![](./img/5-3.png) + 3.创建一个新的文件夹 + + 命令:mkdir [文件夹名] +![](./img/5-4.png) + 4.删除一个文件夹 + + 命令:rmdir [文件夹名](注意:只能删除空文件夹) +![](./img/5-5.png) + 5.移动或重命名文件/文件夹 + + 命令:mv [原路径] [新路径] +![](./img/5-2.png) + 6.复制文件 + + 命令:cp [源文件] [目标路径] + ![](./imgs/4.png) + +![](./img/5-1.png) + 7.删除文件 + + 命令:rm [文件名] + ![](./img/5-7.png) + 8.查看文件内容 + + 命令:cat [文件名] +![](./img/5-8.png) + 9. 分页查看文件内容 + 命令:less [文件名] + ![](./imgs/5-9.png) + 10. 查找文件 + + 命令:find / -name [文件名] + ![](./imgs/5-10.png) + 11. 查看文件权限 + + 命令:ls -l [文件或目录名] + ![](./imgs/5-11.png) + 12. 改变文件权限 + + 命令:chmod [权限] [文件或目录名] + ![](./imgs/5-12.png) + 13. 改变文件所有者 + + 命令:chown [新所有者] [文件或目录名] + ![](./imgs/5-13.png) + 14. 查看当前登录用户 + + 命令:whoami + ![](./imgs/5-14.png) + 15. 查看系统运行时间和平均负载 + + 命令:uptime + ![](./imgs/5-15.png) + 16. 查看磁盘使用情况 + + 命令:df -h + ![](./imgs/5-16.png) + 17. 查看当前路径下的隐藏文件 + + 命令:ls -a + ![](./imgs/5-17.png) + 18. 创建一个空文件 + + 命令:touch [文件名] + ![](./imgs/5-18.png) + 19. 查看当前系统的内核版本 + + 命令:uname -r + ![](./imgs/5-19.png) + 20. 查看网络连接状态 + + 命令:ifconfig 或 ip addr + ![](./imgs/5-20.png) + 21. 安装一个软件包 + + 命令:sudo apt-get install [软件包名] + ![](./imgs/5-21.png) + 22. 卸载一个软件包 + + 命令:sudo apt-get remove [软件包名] + ![](./imgs/5-22.png) + 23. 更新软件包列表 + + 命令:sudo apt-get update + ![](./imgs/5-23.png) + +5. 在服务器上安装SDK环境 +![](./img/3.png) +### MVC练习 1. 创建一个控制台项目,没有任何选项,体会项目名称和什么有关系 项目名称于与项目结构、文件组织、命名空间等方面有关系,通过合理地选择和使用项目名称,可以提高项目可读性、可维护性和可发展性 ![](./相关图片/屏幕截图%202024-11-24%20150521.png) diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241226-\350\257\276\345\240\202\347\254\224\350\256\260\345\217\212\344\275\234\344\270\232.md" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241226-\350\257\276\345\240\202\347\254\224\350\256\260\345\217\212\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..fa8a7e1a14306bfa6c73339ff729ebd3030ccf55 --- /dev/null +++ "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/20241226-\350\257\276\345\240\202\347\254\224\350\256\260\345\217\212\344\275\234\344\270\232.md" @@ -0,0 +1,16 @@ +使用Contains方法的必备条件: + +Contains等价于SQL中的like语句。不过Contains只针对于字符串(string)类型的数据而言。如果是int等数值类型,则不会有Contains方法的存在,因此数值字段貌似无法通过使用Lambda表达式来完成like操作。因此在使用实体框架的同时,设计数据的时候如果想使用like请确保数据库字段为字符串类型(text、varchar等)。 + +2. Contains方法关联方法(均等价于SQL中的like[注意:这里为什么会说是等价呢,因为如下列出的方法均为Stirng里的方法。like的应用是不分字符类型的,数值行亦可]): + +Contains等价于like '%key%' 指示指定的 String 对象是否出现在此字符串中。 + +EndsWith等价于like '%key' 确定此字符串实例的结尾是否与指定的字符串匹配。 + +StartsWith等价于like 'key%' 确定此字符串实例的开头是否与指定的字符串匹配。 + +3. 使用Contains方法时前往不要忘记非NULL的判断 + +### 作业 +![](./相关图片/屏幕截图%202024-12-29%20212307.png) \ No newline at end of file diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/1.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/1.png" new file mode 100644 index 0000000000000000000000000000000000000000..e9422fd9a18086c901ce4973d6cda117943a565c Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/1.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/2.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/2.png" new file mode 100644 index 0000000000000000000000000000000000000000..e2401ace2a5cd696fbaf8953219b4383b377dc9c Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/2.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/3.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/3.png" new file mode 100644 index 0000000000000000000000000000000000000000..9a7b5e3aedcf34807d76cc896c47b66772c45bb9 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/3.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/4.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/4.png" new file mode 100644 index 0000000000000000000000000000000000000000..bf8809eebe6a70fbb1cbc5e301cad818a90c8098 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/4.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-1.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-1.png" new file mode 100644 index 0000000000000000000000000000000000000000..7b302524128407fcfb58cdb8c34967060936800c Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-1.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-10.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-10.png" new file mode 100644 index 0000000000000000000000000000000000000000..971832994eb0aaf856e927093c3723088be0a429 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-10.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-11.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-11.png" new file mode 100644 index 0000000000000000000000000000000000000000..ab95786a588288a610d2588f510be1a23291182b Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-11.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-12.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-12.png" new file mode 100644 index 0000000000000000000000000000000000000000..fcac67d2b8c94ef161a315e9bc71f5102fb327e2 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-12.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-13.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-13.png" new file mode 100644 index 0000000000000000000000000000000000000000..7417f8f4792bbe08594a8892ff3c8c0eef7d50d8 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-13.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-14.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-14.png" new file mode 100644 index 0000000000000000000000000000000000000000..431e4e00fafb9c0b48b5cf93c341dc0f1cd96d61 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-14.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-15.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-15.png" new file mode 100644 index 0000000000000000000000000000000000000000..b42487d7faa67ccf662d51818e4c6c5f0aefe567 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-15.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-16.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-16.png" new file mode 100644 index 0000000000000000000000000000000000000000..bc47e684d84c31a92e843e8c19382600fe57529b Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-16.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-17.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-17.png" new file mode 100644 index 0000000000000000000000000000000000000000..6ed2cf2d5ea37aacd581abeecd97dad84eb39ca9 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-17.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-18.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-18.png" new file mode 100644 index 0000000000000000000000000000000000000000..1766edda8a0b5922b3db471a0cb866d9c4617199 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-18.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-19.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-19.png" new file mode 100644 index 0000000000000000000000000000000000000000..458926e642df013a9ba3c9afa567f1dc41c7c0e4 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-19.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-2.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-2.png" new file mode 100644 index 0000000000000000000000000000000000000000..9ed5e92e4684974a464e43f7f2a6910f600fe139 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-2.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-20.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-20.png" new file mode 100644 index 0000000000000000000000000000000000000000..9f95504e5ae4a6c3a4faba00d1914fda4f55bbf3 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-20.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-21.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-21.png" new file mode 100644 index 0000000000000000000000000000000000000000..ccf25f696dc6f3cc496762c659d71ff1121c5e7a Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-21.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-22.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-22.png" new file mode 100644 index 0000000000000000000000000000000000000000..ccf25f696dc6f3cc496762c659d71ff1121c5e7a Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-22.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-23.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-23.png" new file mode 100644 index 0000000000000000000000000000000000000000..85e35d30b696658b0f74f00ef0c8156017d2b493 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-23.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-3.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-3.png" new file mode 100644 index 0000000000000000000000000000000000000000..98eeb3c0ec20dbc0c20f65609fb5694cf069bbe2 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-3.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-4.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-4.png" new file mode 100644 index 0000000000000000000000000000000000000000..e5ccb0509f031dc7359158d141b1235173a4a33e Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-4.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-5.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-5.png" new file mode 100644 index 0000000000000000000000000000000000000000..8fed7f6de9c839c967168cfe6d86208cf9ccc584 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-5.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-7.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-7.png" new file mode 100644 index 0000000000000000000000000000000000000000..ae2a80ae405796c4c53d229016f21fcee3c47d30 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-7.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-8.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-8.png" new file mode 100644 index 0000000000000000000000000000000000000000..22e92479623b09719e3c9c81e7ebdfc99d0c441d Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-8.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-9.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-9.png" new file mode 100644 index 0000000000000000000000000000000000000000..0724a808c76782163ff2b09a847aac8d267b40da Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/img/5-9.png" differ diff --git "a/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/\347\233\270\345\205\263\345\233\276\347\211\207/\345\261\217\345\271\225\346\210\252\345\233\276 2024-12-29 212307.png" "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/\347\233\270\345\205\263\345\233\276\347\211\207/\345\261\217\345\271\225\346\210\252\345\233\276 2024-12-29 212307.png" new file mode 100644 index 0000000000000000000000000000000000000000..daf517b1d792b41dc4e24d173b514bc84dd9e1f5 Binary files /dev/null and "b/\346\264\252\346\202\246/\350\257\276\345\240\202\347\254\224\350\256\260/\347\233\270\345\205\263\345\233\276\347\211\207/\345\261\217\345\271\225\346\210\252\345\233\276 2024-12-29 212307.png" differ