Files
geedge-jira/md/OSS-30.md
2025-09-14 22:27:11 +00:00

40 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# python脚本编写任务
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OSS-30 | 2020-03-23T11:08:22.000+0800 | 尹付涛 | 完成 |
---
通过脚本编写将学习到的python知识运用到实际工作中
练习题:
1、计算两个格式化时间之间差了多少年月日时分秒
2、计算当前时间所在月1号的时间戳
3、分别列出给定目录下所有的文件和文件夹
4、获取当前文件所在目录
5、在当前目录下创建一个文件夹、在这个文件夹下创建一个文件
6、计算某路径下所有文件和文件夹的总大小
7、校验两个文件的一致性
8、完成一个既可以向文件输出又可以向屏幕输出的日志设置
要求: 使用PEP8规范编写构建函数便于后续编写程序复用
# Attachments
Attachment: python编写任务-2020.3.29-yft.zip
[python编写任务-2020.3.29-yft.zip](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/10725/python编写任务-2020.3.29-yft.zip)