From 950ecbf5809cacfe907fe2334b15246e1205fe0a Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 24 Jun 2025 22:20:51 +0800 Subject: [PATCH] Initialize project structure with essential files including .gitignore, .python-version, README.md, main.py, prompt.md, and pyproject.toml. --- .gitignore | 10 ++++++++++ .python-version | 1 + README.md | 0 main.py | 6 ++++++ prompt.md | 5 +++++ pyproject.toml | 7 +++++++ 6 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 .python-version create mode 100644 README.md create mode 100644 main.py create mode 100644 prompt.md create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..505a3b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py new file mode 100644 index 0000000..3eb4e8b --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from cn-design-ftp!") + + +if __name__ == "__main__": + main() diff --git a/prompt.md b/prompt.md new file mode 100644 index 0000000..49ceb52 --- /dev/null +++ b/prompt.md @@ -0,0 +1,5 @@ +| 设计题目 | **编程实现 FTP 服务器 ★★★** | +| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 已知技术参数和设计要求 | 设计要求:1.客户端通过 Windows 的命令行访问 FTP 服务器。2.FTP 服务器可以并发地服务多个客户。3.至少实现对 FTP 命令 user、pass、dir、get 的支持。即用户注册、显示服务器端的文件列表、下载文件等。4.FTP 服务器必须对出现的问题或错误做出响应。 | +| 设计内容与步骤 | 1. 参考相关的 RFC,熟悉 FTP 规范;2. 学习多线程机制;3. FTP 服务器结构设计;4. FTP 服务器程序设计;5. FTP 服务器程序调试;6. 课程设计任务书。 | +| 设计工作计划与进度安排 | 1.Socket 程序设计 4 小时 2.程序调试调试方法 4 小时 3.FTP 规范 4 小时 4.FTP 服务器结构设计 4 小时 5.FTP 服务器程序设计与调试 14 小时 6.课程设计报告 5 小时 | diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..806c901 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "cn-design-ftp" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.13" +dependencies = []