20250602在Ubuntu20.04.6下修改压缩包的日期和时间

rootroot@rootroot-X99-Turbo:~$ ll
-rwxrwxrwx   1 rootroot rootroot 36247187308 5月  23 10:23  Android13.0地面站.tgz*
rootroot@rootroot-X99-Turbo:~$ touch 1Android13.0地面站.tgz 
rootroot@rootroot-X99-Turbo:~$ ll
-rwxrwxrwx   1 rootroot rootroot 36247187308 6月   2 09:56  1Android13.0地面站.tgz*
rootroot@rootroot-X99-Turbo:~$ ll
-rwxrwxrwx   1 rootroot rootroot 36247187308 6月   2 09:56  Android13.0地面站.tgz*


20250602在Ubuntu20.04.6下修改压缩包的日期和时间
2025/6/2 14:42


BING:linux 修改 文件 日期和时间 为当前日期和时间
百度:linux 修改 文件 日期和时间


https://chat.deepseek.com/a/chat/s/282d18b1-0f7f-42d2-a4ba-2f5750f7b363
Ubuntu修改文件时间方法总结
ubuntu 修改文件时间和日期 为当前的
在 Ubuntu 中,你可以使用 touch 命令来修改文件的时间戳(包括访问时间和修改时间)为当前时间。以下是具体方法:

1. 将文件的时间戳更新为当前时间
bash
touch 文件名
这会将文件的访问时间(atime)和修改时间(mtime)都更新为当前时间。

2. 仅修改文件的修改时间(mtime)为当前时间
bash
touch -m 文件名
3. 仅修改文件的访问时间(atime)为当前时间
bash
touch -a 文件名
4. 修改为自定义时间(而非当前时间)
如果你想将文件时间设置为指定的时间而不是当前时间,可以使用:

bash
touch -t 202406021830.00 文件名
其中:

202406021830.00 表示 YYYYMMDDhhmm.ss(年月日时分.秒)格式的时间。

5. 递归修改目录及其子目录下的所有文件时间
bash
find 目录名 -exec touch {} \;
这会将该目录及其子目录下的所有文件的时间戳更新为当前时间。

注意事项
你需要有对文件的写入权限才能修改其时间戳。

如果文件不存在,touch 会创建一个新的空文件。

希望这些方法能帮到你!


完整的LOG:
rootroot@rootroot-X99-Turbo:~$ ll
total 35397940
drwxr-xr-x  51 rootroot rootroot        4096 6月   2 09:56  ./
drwxr-xr-x   5 root     root            4096 2月  25 09:37  ../
drwxrwxr-x  11 rootroot rootroot        4096 4月  25 17:04  01临时了friendlywrt-h3/
drwxrwxr-x  12 rootroot rootroot        4096 5月   6 11:26  02临时了-单线程编译通过了friendlywrt-h3/
drwxrwxrwx   2 rootroot rootroot        4096 5月   7 11:52  07_源代码/
drwxrwxrwx   3 rootroot rootroot        4096 5月  30 19:07  20241224的神州数码RK3566/
drwxrwxr-x  16 rootroot rootroot        4096 5月  12 11:44  61临时了sd-fuse_h3/
drwxrwxr-x   9 rootroot rootroot        4096 5月  12 17:37  62临时了sd-fuse_h3/
drwxrwxr-x   8 rootroot rootroot        4096 5月  17 16:28  63临时了sd-fuse_h3/
drwxrwxr-x  13 rootroot rootroot        4096 5月  20 09:27  64临时了sd-fuse_h3/
drwxrwxrwx  36 rootroot rootroot        4096 5月  26 15:31  Android13.0/
-rwxrwxrwx   1 rootroot rootroot 36247187308 5月  23 10:23  Android13.0地面站.tgz*
-rw-r--r--   1 rootroot rootroot        3771 4月  25 10:29  bak1.bashrc
-rw-------   1 rootroot rootroot       28956 5月  30 19:15  .bash_history
-rw-r--r--   1 rootroot rootroot         220 2月  24 18:43  .bash_logout
-rw-r--r--   1 rootroot rootroot        3852 4月  25 10:30  .bashrc
drwxrwxr-x   4 rootroot rootroot        4096 5月  13 16:31  BOOT/
drwxr-xr-x  20 rootroot rootroot        4096 5月  30 10:23  .buildroot-ccache/
drwx------   2 rootroot rootroot        4096 4月  23 13:45 'buildroot linux系统的cpu频率无法查看和修改呢?'/
drwx------ 137 rootroot rootroot        4096 5月  27 11:08  .cache/
drwxr-xr-x   3 rootroot rootroot        4096 4月  25 15:38  .cmake/
drwx------  20 rootroot rootroot        4096 5月  22 09:13  .config/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Desktop/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Documents/
drwxr-xr-x   2 rootroot rootroot        4096 5月  19 17:18  Downloads/
drwx------   3 rootroot rootroot        4096 4月  29 20:06  .gnupg/
drwxrwxr-x   2 rootroot rootroot        4096 4月  25 17:00  h3/
drwxrwxr-x   5 rootroot rootroot        4096 6月   2 09:53  hailuo_temp/
drwxr-xr-x   5 rootroot rootroot        4096 3月   7 09:39  .local/
drwx------   2 rootroot rootroot        4096 4月  25 17:29  LOG/
drwx------   4 rootroot rootroot        4096 2月  27 17:35  .mozilla/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Music/
drwx------   3 rootroot rootroot        4096 3月   7 11:04  .nv/
drwxr-xr-x   2 rootroot rootroot       20480 5月  27 17:22  Pictures/
drwx------   3 rootroot rootroot        4096 3月  12 18:47  .pki/
-rw-r--r--   1 rootroot rootroot         807 2月  24 18:43  .profile
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Public/
-rw-------   1 rootroot rootroot           7 3月   5 10:32  .python_history
drwxrwxr-x   3 rootroot rootroot        4096 5月  20 14:41  quectel-cm/
drwxrwxr-x   3 rootroot rootroot        4096 5月   6 09:31  r6s/
-rw-r--r--   1 rootroot rootroot           2 5月  30 18:46  .repo_.gitconfig.json
drwxr-xr-x  35 rootroot rootroot        4096 4月  10 09:23  RK3566_RK3568_Linux5.10_V1.2.0/
drwx------  19 rootroot rootroot        4096 5月   9 14:44  RK3566的吊舱-IIMG/
drwx------   2 rootroot rootroot        4096 4月  24 18:36  RK3588+4800w/
drwxrwxr-x  12 rootroot rootroot        4096 5月  21 09:07  sd-fuse_h3/
drwx------   3 rootroot rootroot        4096 4月  24 17:09  snap/
drwxrwxrwx  16 rootroot rootroot        4096 5月   9 14:43  source/
drwx------   2 rootroot rootroot        4096 5月  10 16:40  .ssh/
-rw-r--r--   1 rootroot rootroot           0 2月  25 09:05  .sudo_as_admin_successful
drwxrwxr-x   2 rootroot rootroot        4096 3月  12 18:47 'Sunlogin Files'/
drwxrwxr-x  34 rootroot rootroot        4096 5月  30 18:52  tao_android13/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Templates/
drwx------   3 rootroot rootroot        4096 6月   2 09:07  tgz/
drwx------   6 rootroot rootroot        4096 4月   7 12:05  .thunderbird/
drwxrwxr-x  13 rootroot rootroot        4096 5月  30 09:41  version/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Videos/
drwxr-xr-x   2 rootroot rootroot        4096 4月  30 19:06  .vmware/
drwxrwxr-x   4 rootroot rootroot        4096 4月  30 10:27  vmware/
-rw-r--r--   1 rootroot rootroot         221 5月  20 14:36  .wget-hsts
drwxrwxr-x   8 rootroot rootroot        4096 3月   7 11:53  whisper/
-rw-------   1 rootroot rootroot         256 6月   2 09:56  .Xauthority
drwx------   2 rootroot rootroot        4096 3月  22 14:59  摄像头/
-rwx------   1 rootroot rootroot         376 5月  30 16:52  说明.txt*
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ touch 1Android13.0地面站.tgz 
rootroot@rootroot-X99-Turbo:~$ ll
total 35397940
drwxr-xr-x  51 rootroot rootroot        4096 6月   2 09:56  ./
drwxr-xr-x   5 root     root            4096 2月  25 09:37  ../
drwxrwxr-x  11 rootroot rootroot        4096 4月  25 17:04  01临时了friendlywrt-h3/
drwxrwxr-x  12 rootroot rootroot        4096 5月   6 11:26  02临时了-单线程编译通过了friendlywrt-h3/
drwxrwxrwx   2 rootroot rootroot        4096 5月   7 11:52  07_源代码/
-rwxrwxrwx   1 rootroot rootroot 36247187308 6月   2 09:56  1Android13.0地面站.tgz*
drwxrwxrwx   3 rootroot rootroot        4096 5月  30 19:07  20241224的神州数码RK3566/
drwxrwxr-x  16 rootroot rootroot        4096 5月  12 11:44  61临时了sd-fuse_h3/
drwxrwxr-x   9 rootroot rootroot        4096 5月  12 17:37  62临时了sd-fuse_h3/
drwxrwxr-x   8 rootroot rootroot        4096 5月  17 16:28  63临时了sd-fuse_h3/
drwxrwxr-x  13 rootroot rootroot        4096 5月  20 09:27  64临时了sd-fuse_h3/
drwxrwxrwx  36 rootroot rootroot        4096 5月  26 15:31  Android13.0/
-rw-r--r--   1 rootroot rootroot        3771 4月  25 10:29  bak1.bashrc
-rw-------   1 rootroot rootroot       28956 5月  30 19:15  .bash_history
-rw-r--r--   1 rootroot rootroot         220 2月  24 18:43  .bash_logout
-rw-r--r--   1 rootroot rootroot        3852 4月  25 10:30  .bashrc
drwxrwxr-x   4 rootroot rootroot        4096 5月  13 16:31  BOOT/
drwxr-xr-x  20 rootroot rootroot        4096 5月  30 10:23  .buildroot-ccache/
drwx------   2 rootroot rootroot        4096 4月  23 13:45 'buildroot linux系统的cpu频率无法查看和修改呢?'/
drwx------ 137 rootroot rootroot        4096 5月  27 11:08  .cache/
drwxr-xr-x   3 rootroot rootroot        4096 4月  25 15:38  .cmake/
drwx------  20 rootroot rootroot        4096 5月  22 09:13  .config/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Desktop/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Documents/
drwxr-xr-x   2 rootroot rootroot        4096 5月  19 17:18  Downloads/
drwx------   3 rootroot rootroot        4096 4月  29 20:06  .gnupg/
drwxrwxr-x   2 rootroot rootroot        4096 4月  25 17:00  h3/
drwxrwxr-x   5 rootroot rootroot        4096 6月   2 09:53  hailuo_temp/
drwxr-xr-x   5 rootroot rootroot        4096 3月   7 09:39  .local/
drwx------   2 rootroot rootroot        4096 4月  25 17:29  LOG/
drwx------   4 rootroot rootroot        4096 2月  27 17:35  .mozilla/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Music/
drwx------   3 rootroot rootroot        4096 3月   7 11:04  .nv/
drwxr-xr-x   2 rootroot rootroot       20480 5月  27 17:22  Pictures/
drwx------   3 rootroot rootroot        4096 3月  12 18:47  .pki/
-rw-r--r--   1 rootroot rootroot         807 2月  24 18:43  .profile
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Public/
-rw-------   1 rootroot rootroot           7 3月   5 10:32  .python_history
drwxrwxr-x   3 rootroot rootroot        4096 5月  20 14:41  quectel-cm/
drwxrwxr-x   3 rootroot rootroot        4096 5月   6 09:31  r6s/
-rw-r--r--   1 rootroot rootroot           2 5月  30 18:46  .repo_.gitconfig.json
drwxr-xr-x  35 rootroot rootroot        4096 4月  10 09:23  RK3566_RK3568_Linux5.10_V1.2.0/
drwx------  19 rootroot rootroot        4096 5月   9 14:44  RK3566的吊舱-IIMG/
drwx------   2 rootroot rootroot        4096 4月  24 18:36  RK3588+4800w/
drwxrwxr-x  12 rootroot rootroot        4096 5月  21 09:07  sd-fuse_h3/
drwx------   3 rootroot rootroot        4096 4月  24 17:09  snap/
drwxrwxrwx  16 rootroot rootroot        4096 5月   9 14:43  source/
drwx------   2 rootroot rootroot        4096 5月  10 16:40  .ssh/
-rw-r--r--   1 rootroot rootroot           0 2月  25 09:05  .sudo_as_admin_successful
drwxrwxr-x   2 rootroot rootroot        4096 3月  12 18:47 'Sunlogin Files'/
drwxrwxr-x  34 rootroot rootroot        4096 5月  30 18:52  tao_android13/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Templates/
drwx------   3 rootroot rootroot        4096 6月   2 09:07  tgz/
drwx------   6 rootroot rootroot        4096 4月   7 12:05  .thunderbird/
drwxrwxr-x  13 rootroot rootroot        4096 5月  30 09:41  version/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Videos/
drwxr-xr-x   2 rootroot rootroot        4096 4月  30 19:06  .vmware/
drwxrwxr-x   4 rootroot rootroot        4096 4月  30 10:27  vmware/
-rw-r--r--   1 rootroot rootroot         221 5月  20 14:36  .wget-hsts
drwxrwxr-x   8 rootroot rootroot        4096 3月   7 11:53  whisper/
-rw-------   1 rootroot rootroot         256 6月   2 09:56  .Xauthority
drwx------   2 rootroot rootroot        4096 3月  22 14:59  摄像头/
-rwx------   1 rootroot rootroot         376 5月  30 16:52  说明.txt*
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ ll
total 35397940
drwxr-xr-x  51 rootroot rootroot        4096 6月   2 09:57  ./
drwxr-xr-x   5 root     root            4096 2月  25 09:37  ../
drwxrwxr-x  11 rootroot rootroot        4096 4月  25 17:04  01临时了friendlywrt-h3/
drwxrwxr-x  12 rootroot rootroot        4096 5月   6 11:26  02临时了-单线程编译通过了friendlywrt-h3/
drwxrwxrwx   2 rootroot rootroot        4096 5月   7 11:52  07_源代码/
drwxrwxrwx   3 rootroot rootroot        4096 5月  30 19:07  20241224的神州数码RK3566/
drwxrwxr-x  16 rootroot rootroot        4096 5月  12 11:44  61临时了sd-fuse_h3/
drwxrwxr-x   9 rootroot rootroot        4096 5月  12 17:37  62临时了sd-fuse_h3/
drwxrwxr-x   8 rootroot rootroot        4096 5月  17 16:28  63临时了sd-fuse_h3/
drwxrwxr-x  13 rootroot rootroot        4096 5月  20 09:27  64临时了sd-fuse_h3/
drwxrwxrwx  36 rootroot rootroot        4096 5月  26 15:31  Android13.0/
-rwxrwxrwx   1 rootroot rootroot 36247187308 6月   2 09:56  Android13.0地面站.tgz*
-rw-r--r--   1 rootroot rootroot        3771 4月  25 10:29  bak1.bashrc
-rw-------   1 rootroot rootroot       28956 5月  30 19:15  .bash_history
-rw-r--r--   1 rootroot rootroot         220 2月  24 18:43  .bash_logout
-rw-r--r--   1 rootroot rootroot        3852 4月  25 10:30  .bashrc
drwxrwxr-x   4 rootroot rootroot        4096 5月  13 16:31  BOOT/
drwxr-xr-x  20 rootroot rootroot        4096 5月  30 10:23  .buildroot-ccache/
drwx------   2 rootroot rootroot        4096 4月  23 13:45 'buildroot linux系统的cpu频率无法查看和修改呢?'/
drwx------ 137 rootroot rootroot        4096 5月  27 11:08  .cache/
drwxr-xr-x   3 rootroot rootroot        4096 4月  25 15:38  .cmake/
drwx------  20 rootroot rootroot        4096 5月  22 09:13  .config/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Desktop/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Documents/
drwxr-xr-x   2 rootroot rootroot        4096 5月  19 17:18  Downloads/
drwx------   3 rootroot rootroot        4096 4月  29 20:06  .gnupg/
drwxrwxr-x   2 rootroot rootroot        4096 4月  25 17:00  h3/
drwxrwxr-x   5 rootroot rootroot        4096 6月   2 09:53  hailuo_temp/
drwxr-xr-x   5 rootroot rootroot        4096 3月   7 09:39  .local/
drwx------   2 rootroot rootroot        4096 4月  25 17:29  LOG/
drwx------   4 rootroot rootroot        4096 2月  27 17:35  .mozilla/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Music/
drwx------   3 rootroot rootroot        4096 3月   7 11:04  .nv/
drwxr-xr-x   2 rootroot rootroot       20480 5月  27 17:22  Pictures/
drwx------   3 rootroot rootroot        4096 3月  12 18:47  .pki/
-rw-r--r--   1 rootroot rootroot         807 2月  24 18:43  .profile
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Public/
-rw-------   1 rootroot rootroot           7 3月   5 10:32  .python_history
drwxrwxr-x   3 rootroot rootroot        4096 5月  20 14:41  quectel-cm/
drwxrwxr-x   3 rootroot rootroot        4096 5月   6 09:31  r6s/
-rw-r--r--   1 rootroot rootroot           2 5月  30 18:46  .repo_.gitconfig.json
drwxr-xr-x  35 rootroot rootroot        4096 4月  10 09:23  RK3566_RK3568_Linux5.10_V1.2.0/
drwx------  19 rootroot rootroot        4096 5月   9 14:44  RK3566的吊舱-IIMG/
drwx------   2 rootroot rootroot        4096 4月  24 18:36  RK3588+4800w/
drwxrwxr-x  12 rootroot rootroot        4096 5月  21 09:07  sd-fuse_h3/
drwx------   3 rootroot rootroot        4096 4月  24 17:09  snap/
drwxrwxrwx  16 rootroot rootroot        4096 5月   9 14:43  source/
drwx------   2 rootroot rootroot        4096 5月  10 16:40  .ssh/
-rw-r--r--   1 rootroot rootroot           0 2月  25 09:05  .sudo_as_admin_successful
drwxrwxr-x   2 rootroot rootroot        4096 3月  12 18:47 'Sunlogin Files'/
drwxrwxr-x  34 rootroot rootroot        4096 5月  30 18:52  tao_android13/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Templates/
drwx------   3 rootroot rootroot        4096 6月   2 09:07  tgz/
drwx------   6 rootroot rootroot        4096 4月   7 12:05  .thunderbird/
drwxrwxr-x  13 rootroot rootroot        4096 5月  30 09:41  version/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Videos/
drwxr-xr-x   2 rootroot rootroot        4096 4月  30 19:06  .vmware/
drwxrwxr-x   4 rootroot rootroot        4096 4月  30 10:27  vmware/
-rw-r--r--   1 rootroot rootroot         221 5月  20 14:36  .wget-hsts
drwxrwxr-x   8 rootroot rootroot        4096 3月   7 11:53  whisper/
-rw-------   1 rootroot rootroot         256 6月   2 09:56  .Xauthority
drwx------   2 rootroot rootroot        4096 3月  22 14:59  摄像头/
-rwx------   1 rootroot rootroot         376 5月  30 16:52  说明.txt*
rootroot@rootroot-X99-Turbo:~$ 


本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.tpcf.cn/bicheng/83696.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

windows无法安装到这个磁盘,选中的磁盘采用gpt分区仪式

解决办法: 我才用的是一个网友分享的微软官方解决办法,成功了,但是不知道会不会i有什么影响。将所有分区删掉,这时磁盘变成为分配的空间。我个人是两块固态,一块m.2,一块sata;所以我直接将500g…

使用Composer创建公共类库

概述 如果多个项目中存在使用相同类库、模块的情况,此时可以考虑将类库或者模块单独抽取出来,形成独立类库,通过composer 来进行依赖管理,这样可以更方便维护,大大提升开发效率。 优势 可以对特定模块进行统一维护和…

Ubuntu中TFTP服务器安装使用

TFTP服务器 在 Ubuntu 下使用 TFTP(Trivial File Transfer Protocol) 服务,通常用于简单的文件传输(如网络设备固件更新、嵌入式开发等)。 1 TFTP服务器安装 sudo apt-get install tftp-hpa sudo apt-get install…

前端面试总结

1.请做下自我介绍 技术栈 工作经历 2.挑一个项目详细讲一下 介绍了一个项目的业务,重点讲了一个动态表单的实现,从业务、扩展性、可维护性、性能提升 3.场景题:问答怎么做,表单之间关联,回答不同问题跳转到不同的下一个…

Python训练打卡Day38

Dataset和Dataloader类 知识点回顾: Dataset类的__getitem__和__len__方法(本质是python的特殊方法)Dataloader类minist手写数据集的了解 在遇到大规模数据集时,显存常常无法一次性存储所有数据,所以需要使用分批训练的…

web3-区块链基础:从区块添加机制到哈希加密与默克尔树结构

区块链基础:从区块添加机制到哈希加密与默克尔树结构 什么是区块链 抽象的回答: 区块链提供了一种让多个参与方在没有一个唯一可信方的情况下达成合作 若有可信第三方 > 不需要区块链 [金融系统中常常没有可信的参与方] 像股票市场,或者一个国家的…

MySQL 索引:为使用 B+树作为索引数据结构,而非 B树、哈希表或二叉树?

在数据库的世界里,性能是永恒的追求。而索引,作为提升查询速度的利器,其底层数据结构的选择至关重要。如果你深入了解过 MySQL(尤其是其主流存储引擎 InnoDB),你会发现它不约而同地选择了 B树 作为索引的主…

Kafka broker 写消息的过程

Producer → Kafka Broker → Replication → Consumer|Partition chosen (by key or round-robin)|Message appended to end of log (commit log)上面的流程是kafka 写操作的大体流程。 kafka 不会特意保留message 在内存中,而是直接写入了disk。 那么消费的时候&…

leetcode hot100(两数之和、字母异位词分组、最长连续序列)

两数之和 题目链接 参考链接&#xff1a; 题目描述&#xff1a; 暴力法 双重循环查找目标值 class Solution {public int[] twoSum(int[] nums, int target) {int[] res new int[2];for(int i 0 ; i < nums.length ; i){boolean isFind false;for(int j i 1 ; j …

SkyWalking架构深度解析:分布式系统监控的利器

一、SkyWalking概述 SkyWalking是一款开源的APM(应用性能监控)系统&#xff0c;专门为微服务、云原生和容器化架构设计。它由Apache软件基金会孵化并毕业&#xff0c;已成为分布式系统监控领域的明星项目。 核心特性 ‌分布式追踪‌&#xff1a;跨服务调用链路的完整追踪‌服务…

Matlab程序设计基础

matlab程序设计基础 程序设计函数文件1.函数文件的基本结构2.创建并使用函数文件的示例3.带多个输出的函数示例4.包含子函数的函数文件 流程控制1. if 条件语句2. switch 多分支选择语句3. try-catch 异常处理语句ME与lasterr 4. while 循环语句5. for 循环语句break和continue…

Client-Side Path Traversal 漏洞学习笔记

近年来,随着Web前端技术的飞速发展,越来越多的数据请求和处理逻辑被转移到客户端(浏览器)执行。这大大提升了用户体验,但也带来了新的安全威胁。其中,Client-Side Path Traversal(客户端路径穿越,CSPT)作为一种新兴的漏洞类型,逐渐受到安全研究者和攻击者的关注。本文…

基于Socketserver+ThreadPoolExecutor+Thread构造的TCP网络实时通信程序

目录 介绍&#xff1a; 源代码&#xff1a; Socketserver-服务端代码 Socketserver客户端代码&#xff1a; 介绍&#xff1a; socketserver是一种传统的传输层网络编程接口&#xff0c;相比WebSocket这种应用层的协议来说&#xff0c;socketserver比较底层&#xff0c;soc…

【无标题】平面图四色问题P类归属的严格论证——基于拓扑收缩与动态调色算法框架

平面图四色问题P类归属的严格论证——基于拓扑收缩与动态调色算法框架 --- #### **核心定理** 任意平面图 \(G (V, E)\) 的四色着色问题可在多项式时间 \(O(|V|^2)\) 内求解&#xff0c;且算法正确性由以下三重保证&#xff1a; 1. **拓扑不变性**&#xff08;Kuratowsk…

HALCON 深度学习训练 3D 图像的几种方式优缺点

HALCON 深度学习训练 3D 图像的几种方式优缺点 ** 在计算机视觉和工业检测等领域&#xff0c;3D 图像数据的处理和分析变得越来越重要&#xff0c;HALCON 作为一款强大的机器视觉软件&#xff0c;提供了多种深度学习训练 3D 图像的方式。每种方式都有其独特的设计思路和应用场…

pytest中的元类思想与实战应用

在Python编程世界里&#xff0c;元类是一种强大而高级的特性&#xff0c;它能在类定义阶段深度定制类的创建与行为。而pytest作为热门的测试框架&#xff0c;虽然没有直接使用元类&#xff0c;但在设计机制上&#xff0c;却暗含了许多与元类思想相通的地方。接下来&#xff0c;…

以太网帧结构和封装【三】-- TCP/UDP头部信息

TCP头部用于建立可靠连接、流量控制及数据完整性校验。 Ipv4封装tcp报&#xff1a; Ipv6封装tcp报&#xff1a; UDP头部信息 UDP关键协议特性&#xff1a; 1&#xff09;无连接&#xff1a;无需握手&#xff0c;直接发送数据。 2&#xff09;不可靠性&#xff1a;不保证数据…

MySQL补充知识点学习

书接上文&#xff1a;MySQL关系型数据库学习&#xff0c;继续看书补充MySQL知识点学习。 1. 基本概念学习 1.1 游标&#xff08;Cursor&#xff09; MySQL 游标是一种数据库对象&#xff0c;它允许应用程序逐行处理查询结果集&#xff0c;而不是一次性获取所有结果。游标在需…

基于InternLM的情感调节大师FunGPT

基于书生系列大模型&#xff0c;社区用户不断创造出令人耳目一新的项目&#xff0c;从灵感萌发到落地实践&#xff0c;每一个都充满智慧与价值。“与书生共创”将陆续推出一系列文章&#xff0c;分享这些项目背后的故事与经验。欢迎订阅并积极投稿&#xff0c;一起分享经验与成…

【拓扑】1639.拓扑排序

题目描述 这是 2018 2018 2018 年研究生入学考试中给出的一个问题&#xff1a; 以下哪个选项不是从给定的有向图中获得的拓扑序列&#xff1f; 现在&#xff0c;请你编写一个程序来测试每个选项。 输入格式 第一行包含两个整数 N N N 和 M M M&#xff0c;分别表示有向图…