diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a5fb641214b4ee515c9d83f5eb7d7190eab33534 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..bed0738c7eeb449bca98b5d2f33c89a1ee56349a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,60 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.avro filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.lz4 filter=lfs diff=lfs merge=lfs -text +*.mds filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +# Audio files - uncompressed +*.pcm filter=lfs diff=lfs merge=lfs -text +*.sam filter=lfs diff=lfs merge=lfs -text +*.raw filter=lfs diff=lfs merge=lfs -text +# Audio files - compressed +*.aac filter=lfs diff=lfs merge=lfs -text +*.flac filter=lfs diff=lfs merge=lfs -text +*.mp3 filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text +*.wav filter=lfs diff=lfs merge=lfs -text +# Image files - uncompressed +*.bmp filter=lfs diff=lfs merge=lfs -text +*.gif filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.tiff filter=lfs diff=lfs merge=lfs -text +# Image files - compressed +*.jpg filter=lfs diff=lfs merge=lfs -text +*.jpeg filter=lfs diff=lfs merge=lfs -text +*.webp filter=lfs diff=lfs merge=lfs -text +# Video files - compressed +*.mp4 filter=lfs diff=lfs merge=lfs -text +*.webm filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3d22bc24b41bce989334c0d40eeea8774f5ad496 --- /dev/null +++ b/README.md @@ -0,0 +1,195 @@ +# RepoZero-Py2JS + +
+ 普通段落
+#另一个段落
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '- 无序项目1\n- 无序项目2\n- 无序项目3' +# Output: +#段落内容。
+#更多内容。
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '# 标题1\n这是一段文本。' +# Output: +#这是一段文本。
+# Return Code: 0 diff --git a/markdown/test10.py b/markdown/test10.py new file mode 100644 index 0000000000000000000000000000000000000000..522de8488927bf130fb6b305a9f527ffd5043fe0 --- /dev/null +++ b/markdown/test10.py @@ -0,0 +1,127 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Markdown with different extension configurations") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + args = parser.parse_args() + + html1 = markdown.markdown(args.a, extensions=['tables', 'fenced_code']) # Convert with tables and fenced code + html2 = markdown.markdown(args.b, extensions=['extra', 'codehilite']) # Convert with extra and codehilite + final_html = markdown.markdown(f"{html1}示例文本 36
+#示例文本 37
+#示例文本 36
+#示例文本 37
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '**重要**的*强调*文本' +# --b = "`print('Hello')` 代码示例" +# Output: +#重要的强调文本
+#print('Hello') 代码示例
重要的强调文本
+#print('Hello') 代码示例

内联代码

内联代码
| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | +#年龄 | +#城市 | +#
|---|---|---|
| 张三 | +#25 | +#北京 | +#
| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | +#年龄 | +#城市 | +#
|---|---|---|
| 张三 | +#25 | +#北京 | +#
示例文本 45
+#示例文本 46
+#示例文本 47
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '示例文本 42' +# --b = '示例文本 43' +# --c = '示例文本 44' +# Output: +#示例文本 42
+#示例文本 43
+#示例文本 44
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '```html\n\n \n```html
+# +# +#```
+#bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
+#
+# Return Code: 0
diff --git a/markdown/test11_executable.zip b/markdown/test11_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bd4062cddff10acb31f84cd1fafcbf7088437fb5
--- /dev/null
+++ b/markdown/test11_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:94e54d8d25e6cf3b4d8451b51c50ff0ed33a727d14a0336db7009af202c71727
+size 35131275
diff --git a/markdown/test12.py b/markdown/test12.py
new file mode 100644
index 0000000000000000000000000000000000000000..98b8643c0807fc74c1135330860d0288a749b7f6
--- /dev/null
+++ b/markdown/test12.py
@@ -0,0 +1,150 @@
+#!/usr/bin/env python3
+import argparse
+import markdown
+
+def main():
+ parser = argparse.ArgumentParser(description="Markdown processing with data flow")
+ parser.add_argument('--a', type=str, required=True)
+ parser.add_argument('--b', type=str, required=True)
+ args = parser.parse_args()
+
+ # Create a complex markdown document
+ combined = f"# Title\n\n{args.a}\n\n---\n\n{args.b}"
+ html1 = markdown.markdown(combined) # Convert combined markdown to HTML
+ # Extract and reprocess part of the HTML
+ html2 = markdown.markdown(args.a + "\n\n" + args.b) # Convert concatenated inputs
+ final = markdown.markdown(f"| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
示例文本 38
+#示例文本 39
+#示例文本 38
+#示例文本 39
+#示例文本 38
+#示例文本 39
示例文本 38
+#示例文本 39
bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
示例文本 42
+#示例文本 43
+#示例文本 44
+#示例文本 42
+#示例文本 43
+#示例文本 44
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '示例文本 30' +# --b = '示例文本 31' +# --c = '示例文本 32' +# Output: +#示例文本 30
+#示例文本 31
+#示例文本 32
+#示例文本 30
+#示例文本 31
+#示例文本 32
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '1. 项目1\n2. 项目2\n3. 项目3' +# --b = '- 无序项目1\n- 无序项目2\n- 无序项目3' +# --c = '[链接文本](https://example.com)' +# Output: +#这是一段文本。
+#这是另一段文本。
+#粗体文本 和 斜体文本
+#这是一段文本。
+#这是另一段文本。
+#粗体文本 和 斜体文本
+# Return Code: 0 diff --git a/markdown/test13_executable.zip b/markdown/test13_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..56c8604ca6ca052678138abf987bde16046b7365 --- /dev/null +++ b/markdown/test13_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2781d9ad5464990bfa3ec12fef472be3d7248c2909605ff539c168fb02675b8 +size 35131703 diff --git a/markdown/test14.py b/markdown/test14.py new file mode 100644 index 0000000000000000000000000000000000000000..ce5927bf4cf20241182660d4d45b4b40a72e2dd8 --- /dev/null +++ b/markdown/test14.py @@ -0,0 +1,183 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Complex markdown processing chain") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + args = parser.parse_args() + + # Create a markdown document with nested structure + doc1 = f"## Section 1\n{args.a}" + doc2 = f"## Section 2\n{args.b}" + + html1 = markdown.markdown(doc1) # Convert first section + html2 = markdown.markdown(doc2) # Convert second section + + # Create a table of contents markdown + toc_md = "# Table of Contents\n1. Section 1\n2. Section 2" + toc_html = markdown.markdown(toc_md, extensions=['toc']) # Convert TOC with toc extension + + final_doc = f"{toc_html}\n\n{html1}\n\n{html2}" + final_html = markdown.markdown(final_doc) # Convert final document + + print(html1) # Print first section HTML + print(html2) # Print second section HTML + print(toc_html) # Print TOC HTML + print(final_html) # Print final HTML + +if __name__ == "__main__": + main() + +# ================================================== +# Sample Test Cases (randomly selected) +# ================================================== + +# ===== Test Case 1 ===== +# Input: +# --a = '| A | B | C |\n| - | - | - |\n| 1 | 2 | 3 |' +# --b = "```python\ndef hello():\n print('Hello World!')\n```" +# Output: +#| A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+#python
+# def hello():
+# print('Hello World!')
| A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+# +#python
+# def hello():
+# print('Hello World!')
普通段落
+#另一个段落
+#段落内容。
+#更多内容。
+#普通段落
+#另一个段落
+# +#段落内容。
+#更多内容。
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '1. 第一\n2. 第二\n3. 第三' +# --b = '- 苹果\n- 香蕉\n- 橙子' +# Output: +#bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
示例文本 76
+#示例文本 77
+#示例文本 78
+#示例文本 79
+#示例文本 76
+#示例文本 77
+#示例文本 78
+#示例文本 79
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '示例文本 72' +# --b = '示例文本 73' +# --c = '示例文本 74' +# --d = '示例文本 75' +# Output: +#示例文本 72
+#示例文本 73
+#示例文本 74
+#示例文本 75
+#示例文本 72
+#示例文本 73
+#示例文本 74
+#示例文本 75
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '示例文本 48' +# --b = '示例文本 49' +# --c = '示例文本 50' +# --d = '示例文本 51' +# Output: +#示例文本 48
+#示例文本 49
+#示例文本 50
+#示例文本 51
+#示例文本 48
+#示例文本 49
+#示例文本 50
+#示例文本 51
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '| 列1 | 列2 | 列3 |\n| --- | --- | --- |\n| 数据1 | 数据2 | 数据3 |' +# --b = '| 姓名 | 年龄 | 城市 |\n| ---- | ---- | ---- |\n| 张三 | 25 | 北京 |' +# --c = '| 项目 | 价格 | 数量 |\n| ---- | ---- | ---- |\n| 苹果 | $1 | 5 |' +# --d = '| 标题1 | 标题2 |\n| ----- | ----- |\n| 内容1 | 内容2 |' +# Output: +#| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | +#年龄 | +#城市 | +#
|---|---|---|
| 张三 | +#25 | +#北京 | +#
| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+#| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | +#年龄 | +#城市 | +#
|---|---|---|
| 张三 | +#25 | +#北京 | +#
| 项目 | +#价格 | +#数量 | +#
|---|---|---|
| 苹果 | +#$1 | +#5 | +#
| 标题1 | +#标题2 | +#
|---|---|
| 内容1 | +#内容2 | +#
示例文本 60
+#示例文本 61
+#示例文本 62
+#示例文本 63
+#示例文本 64
+#示例文本 60 +# 示例文本 61
+#示例文本 62 +# 示例文本 63 +# 示例文本 64
+#示例文本 60 +# 示例文本 61
+# +#示例文本 62 +# 示例文本 63 +# 示例文本 64
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '| 列1 | 列2 | 列3 |\n| --- | --- | --- |\n| 数据1 | 数据2 | 数据3 |' +# --b = '| 姓名 | 年龄 | 城市 |\n| ---- | ---- | ---- |\n| 张三 | 25 | 北京 |' +# --c = '| 项目 | 价格 | 数量 |\n| ---- | ---- | ---- |\n| 苹果 | $1 | 5 |' +# --d = '| 标题1 | 标题2 |\n| ----- | ----- |\n| 内容1 | 内容2 |' +# --e = '| A | B | C |\n| - | - | - |\n| 1 | 2 | 3 |' +# Output: +#| 列1 | 列2 | 列3 | +# | --- | --- | --- | +# | 数据1 | 数据2 | 数据3 |
+#| 姓名 | 年龄 | 城市 | +# | ---- | ---- | ---- | +# | 张三 | 25 | 北京 |
+#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+#| A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+#| 列1 | 列2 | 列3 | +# | --- | --- | --- | +# | 数据1 | 数据2 | 数据3 | +# | 姓名 | 年龄 | 城市 | +# | ---- | ---- | ---- | +# | 张三 | 25 | 北京 |
+#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 | +# | 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 | +# | A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+#| 列1 | 列2 | 列3 | +# | --- | --- | --- | +# | 数据1 | 数据2 | 数据3 | +# | 姓名 | 年龄 | 城市 | +# | ---- | ---- | ---- | +# | 张三 | 25 | 北京 |
+# +#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 | +# | 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 | +# | A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = "```python\ndef hello():\n print('Hello World!')\n```" +# --b = "```javascript\nconsole.log('Hello');\n```" +# --c = '```html\n\n \npython
+# def hello():
+# print('Hello World!')
javascript
+# console.log('Hello');
```html
+# +# +#```
+#bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
python
+# def hello():
+# print('Hello World!')
+# javascript
+# console.log('Hello');
```html
+# +# +#bash
+# ls -la
+# echo $PATH
+#
+# 纯文本代码块
+# 第二行
+# 第三行
+# ```
python
+# def hello():
+# print('Hello World!')
+# javascript
+# console.log('Hello');
```html
+# +# +#bash
+# ls -la
+# echo $PATH
+#
+# 纯文本代码块
+# 第二行
+# 第三行
+# ```
示例文本 50
+#示例文本 51
+#示例文本 52
+#示例文本 53
+#示例文本 54
+#示例文本 50 +# 示例文本 51
+#示例文本 52 +# 示例文本 53 +# 示例文本 54
+#示例文本 50 +# 示例文本 51
+# +#示例文本 52 +# 示例文本 53 +# 示例文本 54
+# Return Code: 0 diff --git a/markdown/test16_executable.zip b/markdown/test16_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..6c3e1069a759adfdf428d9ad2b658f743355e8e6 --- /dev/null +++ b/markdown/test16_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5102ea9ef4761a7d3216a290b750913ea5b680f18a2f5eb4f8c48039a0c464f3 +size 35128525 diff --git a/markdown/test17.py b/markdown/test17.py new file mode 100644 index 0000000000000000000000000000000000000000..a74dc8605b6b275942785989ad3c586a5d206a08 --- /dev/null +++ b/markdown/test17.py @@ -0,0 +1,260 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Complex markdown processing with edge cases") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + parser.add_argument('--c', type=str, required=True) + parser.add_argument('--d', type=str, required=True) + args = parser.parse_args() + + # Process with different extension combinations + html1 = markdown.markdown(args.a, extensions=['extra', 'tables', 'codehilite']) # Multiple extensions + html2 = markdown.markdown(args.b, extensions=['fenced_code', 'toc']) # Code and TOC extensions + html3 = markdown.markdown(args.c, output_format='xhtml') # XHTML format + html4 = markdown.markdown(args.d, output_format='html') # HTML format + + # Nested processing + nested1 = markdown.markdown(f"这是一段文本。
+#这是另一段文本。
+#粗体文本 和 斜体文本
+#这是一段文本。
这是另一段文本。
这是一段文本。
+#这是另一段文本。
+#粗体文本 和 斜体文本
+#示例文本 76
+#示例文本 77
+#示例文本 78
+#示例文本 79
+#示例文本 76
示例文本 77
示例文本 76
+#示例文本 77
+#示例文本 78
+#示例文本 79
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '示例文本 48' +# --b = '示例文本 49' +# --c = '示例文本 50' +# --d = '示例文本 51' +# Output: +#示例文本 48
+#示例文本 49
+#示例文本 50
+#示例文本 51
+#示例文本 48
示例文本 49
示例文本 48
+#示例文本 49
+#示例文本 50
+#示例文本 51
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '| 列1 | 列2 | 列3 |\n| --- | --- | --- |\n| 数据1 | 数据2 | 数据3 |' +# --b = '| 姓名 | 年龄 | 城市 |\n| ---- | ---- | ---- |\n| 张三 | 25 | 北京 |' +# --c = '| 项目 | 价格 | 数量 |\n| ---- | ---- | ---- |\n| 苹果 | $1 | 5 |' +# --d = '| 标题1 | 标题2 |\n| ----- | ----- |\n| 内容1 | 内容2 |' +# Output: +#| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | 年龄 | 城市 | +# | ---- | ---- | ---- | +# | 张三 | 25 | 北京 |
+#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+#| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | 年龄 | 城市 | +# | ---- | ---- | ---- | +# | 张三 | 25 | 北京 |
| 列1 | +#列2 | +#列3 | +#
|---|---|---|
| 数据1 | +#数据2 | +#数据3 | +#
| 姓名 | +#年龄 | +#城市 | +#
|---|---|---|
| 张三 | +#25 | +#北京 | +#
| 项目 | +#价格 | +#数量 | +#
|---|---|---|
| 苹果 | +#$1 | +#5 | +#
| 标题1 | +#标题2 | +#
|---|---|
| 内容1 | +#内容2 | +#
这是一段文本。
+#这是另一段文本。
+#粗体文本 和 斜体文本
+#这是一段文本。
+#这是另一段文本。
+#粗体文本 和 斜体文本
+#这是一段文本。
+#这是另一段文本。
+# +#粗体文本 和 斜体文本
+#这是一段文本。## 标题2 +# 这是另一段文本。粗体文本 和 斜体文本1. 项目1 +# 2. 项目2 +# 3. 项目3- 无序项目1 +# - 无序项目2 +# - 无序项目3
+#这是另一段文本。
+#这是一段文本。
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '示例文本 65' +# --b = '示例文本 66' +# --c = '示例文本 67' +# --d = '示例文本 68' +# --e = '示例文本 69' +# Output: +#示例文本 65
+#示例文本 66
+#示例文本 67
+#示例文本 68
+#示例文本 69
+#示例文本 65
+#示例文本 66
+#示例文本 67
+#示例文本 68
+#示例文本 65
+#示例文本 66
+# +#示例文本 67
+#示例文本 68
+# +#示例文本 69
+#示例文本 65示例文本 66示例文本 67示例文本 68示例文本 69
+#示例文本 69 +# 示例文本 68 +# 示例文本 67 +# 示例文本 66 +# 示例文本 65
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '示例文本 80' +# --b = '示例文本 81' +# --c = '示例文本 82' +# --d = '示例文本 83' +# --e = '示例文本 84' +# Output: +#示例文本 80
+#示例文本 81
+#示例文本 82
+#示例文本 83
+#示例文本 84
+#示例文本 80
+#示例文本 81
+#示例文本 82
+#示例文本 83
+#示例文本 80
+#示例文本 81
+# +#示例文本 82
+#示例文本 83
+# +#示例文本 84
+#示例文本 80示例文本 81示例文本 82示例文本 83示例文本 84
+#示例文本 84 +# 示例文本 83 +# 示例文本 82 +# 示例文本 81 +# 示例文本 80
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '示例文本 95' +# --b = '示例文本 96' +# --c = '示例文本 97' +# --d = '示例文本 98' +# --e = '示例文本 99' +# Output: +#示例文本 95
+#示例文本 96
+#示例文本 97
+#示例文本 98
+#示例文本 99
+#示例文本 95
+#示例文本 96
+#示例文本 97
+#示例文本 98
+#示例文本 95
+#示例文本 96
+# +#示例文本 97
+#示例文本 98
+# +#示例文本 99
+#示例文本 95示例文本 96示例文本 97示例文本 98示例文本 99
+#示例文本 99 +# 示例文本 98 +# 示例文本 97 +# 示例文本 96 +# 示例文本 95
+# Return Code: 0 diff --git a/markdown/test18_executable.zip b/markdown/test18_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..fa737e655b10cb7835534912b82d3b8f5e02ce12 --- /dev/null +++ b/markdown/test18_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0fcf85878dc760cc40e85b2f4dcf4be67e7185150f041f8242e9d952d6cff4c +size 35131858 diff --git a/markdown/test19.py b/markdown/test19.py new file mode 100644 index 0000000000000000000000000000000000000000..b7c5df6f27d43400a6a313aa3283a718ed498802 --- /dev/null +++ b/markdown/test19.py @@ -0,0 +1,391 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Markdown processing with transformation chain") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + parser.add_argument('--c', type=str, required=True) + parser.add_argument('--d', type=str, required=True) + parser.add_argument('--e', type=str, required=True) + parser.add_argument('--f', type=str, required=True) + args = parser.parse_args() + + # Phase 1: Basic conversions + phase1_a = markdown.markdown(args.a) # Convert A + phase1_b = markdown.markdown(args.b) # Convert B + phase1_c = markdown.markdown(args.c) # Convert C + + # Phase 2: With extensions + phase2_d = markdown.markdown(args.d, extensions=['extra', 'tables']) # Convert D with extensions + phase2_e = markdown.markdown(args.e, extensions=['codehilite', 'fenced_code']) # Convert E with code extensions + phase2_f = markdown.markdown(args.f, extensions=['toc']) # Convert F with TOC + + # Phase 3: Combined processing + phase3_combined = markdown.markdown(f""" +# Combined Document + +## Section A +{phase1_a} + +## Section B +{phase1_b} + +## Section C +{phase1_c} + +## Section D +{phase2_d} + +## Section E +{phase2_e} + +## Section F +{phase2_f} +""") + + # Phase 4: Nested transformations + phase4_nested = markdown.markdown(f"示例文本 96
+#示例文本 97
+#示例文本 98
+#示例文本 99
+#这是一段文本。
+#这是另一段文本。
+#示例文本 96
+# +#示例文本 97
+# +#示例文本 98
+# +#示例文本 99
+# +#这是一段文本。
+# +#这是另一段文本。
+#示例文本 96
+# +#示例文本 97
+# +#示例文本 98
+# +#示例文本 99
+# +#这是一段文本。
+# +#这是另一段文本。
示例文本 96
+#示例文本 97
+#示例文本 98
+#示例文本 99
+#这是一段文本。
+#这是另一段文本。
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '示例文本 30' +# --b = '示例文本 31' +# --c = '示例文本 32' +# --d = '示例文本 33' +# --e = '示例文本 34' +# --f = '示例文本 35' +# Output: +#示例文本 30
+#示例文本 31
+#示例文本 32
+#示例文本 33
+#示例文本 34
+#示例文本 35
+#示例文本 30
+# +#示例文本 31
+# +#示例文本 32
+# +#示例文本 33
+# +#示例文本 34
+# +#示例文本 35
+#示例文本 30
+# +#示例文本 31
+# +#示例文本 32
+# +#示例文本 33
+# +#示例文本 34
+# +#示例文本 35
示例文本 30
+#示例文本 31
+#示例文本 32
+#示例文本 33
+#示例文本 34
+#示例文本 35
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '| A | B | C |\n| - | - | - |\n| 1 | 2 | 3 |' +# --b = "```python\ndef hello():\n print('Hello World!')\n```" +# --c = "```javascript\nconsole.log('Hello');\n```" +# --d = '```html\n\n \n| A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+#python
+# def hello():
+# print('Hello World!')
javascript
+# console.log('Hello');
<html>
+# <body>
+# <h1>标题</h1>
+# </body>
+# </html>
+#
+# ls -la
+# echo $PATH
+# 纯文本代码块
+# 第二行
+# 第三行
| A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+# +#python
+# def hello():
+# print('Hello World!')
javascript
+# console.log('Hello');
<html>
+# <body>
+# <h1>标题</h1>
+# </body>
+# </html>
+#
+#
+# ls -la
+# echo $PATH
+# 纯文本代码块
+# 第二行
+# 第三行
| A | B | C | +# | - | - | - | +# | 1 | 2 | 3 |
+# +#python
+# def hello():
+# print('Hello World!')
javascript
+# console.log('Hello');
<html>
+# <body>
+# <h1>标题</h1>
+# </body>
+# </html>
+#
+#
+# ls -la
+# echo $PATH
+# 纯文本代码块
+# 第二行
+# 第三行
| A | +#B | +#C | +#
|---|---|---|
| 1 | +#2 | +#3 | +#
def hello():
+# print('Hello World!')
+# console.log('Hello');
+# <html>
+# <body>
+# <h1>标题</h1>
+# </body>
+# </html>
+# ls -la
+# echo $PATH
+# 纯文本代码块
+# 第二行
+# 第三行
+# 示例文本 54
+#示例文本 55
+#示例文本 56
+#示例文本 57
+#示例文本 58
+#示例文本 59
+#示例文本 54
+# +#示例文本 55
+# +#示例文本 56
+# +#示例文本 57
+# +#示例文本 58
+# +#示例文本 59
+#示例文本 54
+# +#示例文本 55
+# +#示例文本 56
+# +#示例文本 57
+# +#示例文本 58
+# +#示例文本 59
示例文本 54
+#示例文本 55
+#示例文本 56
+#示例文本 57
+#示例文本 58
+#示例文本 59
+# Return Code: 0 diff --git a/markdown/test19_executable.zip b/markdown/test19_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..1593020ff6d1e8b9fdc8f1fec66059f713c09b13 --- /dev/null +++ b/markdown/test19_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:577b959d38ca5637b89b0eec48649f1ed0283f1de3d1f04364e10c572e0b3963 +size 35132175 diff --git a/markdown/test1_executable.zip b/markdown/test1_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..489ff22cf21750d7c175315609d43f30f7529d85 --- /dev/null +++ b/markdown/test1_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6941339ef393f58c1df2e20d20fdf1d8fd0d97472de2921c3fc28792c9203ad7 +size 35131014 diff --git a/markdown/test2.py b/markdown/test2.py new file mode 100644 index 0000000000000000000000000000000000000000..8e75337aae1afec1f0d6f9a063877aea25445c4a --- /dev/null +++ b/markdown/test2.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Markdown with extensions") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + args = parser.parse_args() + + result = markdown.markdown(args.a, extensions=['extra']) # Convert markdown with extra extensions + print(result) # Print HTML with extended features + +if __name__ == "__main__": + main() + +# ================================================== +# Sample Test Cases (randomly selected) +# ================================================== + +# ===== Test Case 1 ===== +# Input: +# --a = '```bash\nls -la\necho $PATH\n```' +# --b = '```\n纯文本代码块\n第二行\n第三行\n```' +# Output: +#ls -la
+# echo $PATH
+#
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --a = '**粗体文本** 和 *斜体文本*'
+# --b = '1. 项目1\n2. 项目2\n3. 项目3'
+# Output:
+# 粗体文本 和 斜体文本
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '| 项目 | 价格 | 数量 |\n| ---- | ---- | ---- |\n| 苹果 | $1 | 5 |' +# --b = '| 标题1 | 标题2 |\n| ----- | ----- |\n| 内容1 | 内容2 |' +# Output: +#| 项目 | +#价格 | +#数量 | +#
|---|---|---|
| 苹果 | +#$1 | +#5 | +#
普通段落
+#另一个段落
+# Return Code: 0 diff --git a/markdown/test20.py b/markdown/test20.py new file mode 100644 index 0000000000000000000000000000000000000000..581862a4d7a70e4a52d53a7013dc8948bc678337 --- /dev/null +++ b/markdown/test20.py @@ -0,0 +1,448 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Ultimate markdown processing test") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + parser.add_argument('--c', type=str, required=True) + parser.add_argument('--d', type=str, required=True) + parser.add_argument('--e', type=str, required=True) + parser.add_argument('--f', type=str, required=True) + parser.add_argument('--g', type=str, required=True) + args = parser.parse_args() + + # Level 1: Individual processing + l1_a = markdown.markdown(args.a) # Process A + l1_b = markdown.markdown(args.b) # Process B + l1_c = markdown.markdown(args.c) # Process C + l1_d = markdown.markdown(args.d) # Process D + + # Level 2: Group processing with extensions + l2_e = markdown.markdown(args.e, extensions=['extra', 'tables', 'codehilite']) # Process E with multiple extensions + l2_f = markdown.markdown(args.f, extensions=['fenced_code', 'toc']) # Process F with code and TOC + l2_g = markdown.markdown(args.g, output_format='xhtml') # Process G as XHTML + + # Level 3: Complex combinations + l3_combo1 = markdown.markdown(f"{args.a}{args.b}{args.c}") # Combine ABC + l3_combo2 = markdown.markdown(f"{args.d}{args.e}{args.f}") # Combine DEF + + # Level 4: Nested structures + l4_nested = markdown.markdown(f""" +# Document + +示例文本 70
+#示例文本 71
+#示例文本 72
+#示例文本 73
+#示例文本 74
+#示例文本 75
+#示例文本 76
+#示例文本 70示例文本 71示例文本 72
+#示例文本 73示例文本 74示例文本 75
+#示例文本 70
+#示例文本 71
+#示例文本 72
+#示例文本 73
+#示例文本 74
+#示例文本 70 +# 示例文本 71
+#示例文本 72 +# 示例文本 73
+#示例文本 74 +# 示例文本 75
+#示例文本 76
+#示例文本 70
+#示例文本 71
+#示例文本 72
+#示例文本 73
+#示例文本 74
+#示例文本 75
+#示例文本 76
+#示例文本 70示例文本 71示例文本 72
+#示例文本 73示例文本 74示例文本 75
+#示例文本 70
+#示例文本 71
+#示例文本 72
+#示例文本 73
+#示例文本 74
+#示例文本 70 +# 示例文本 71
+#示例文本 72 +# 示例文本 73
+#示例文本 74 +# 示例文本 75
+#示例文本 76
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '示例文本 56' +# --b = '示例文本 57' +# --c = '示例文本 58' +# --d = '示例文本 59' +# --e = '示例文本 60' +# --f = '示例文本 61' +# --g = '示例文本 62' +# Output: +#示例文本 56
+#示例文本 57
+#示例文本 58
+#示例文本 59
+#示例文本 60
+#示例文本 61
+#示例文本 62
+#示例文本 56示例文本 57示例文本 58
+#示例文本 59示例文本 60示例文本 61
+#示例文本 56
+#示例文本 57
+#示例文本 58
+#示例文本 59
+#示例文本 60
+#示例文本 56 +# 示例文本 57
+#示例文本 58 +# 示例文本 59
+#示例文本 60 +# 示例文本 61
+#示例文本 62
+#示例文本 56
+#示例文本 57
+#示例文本 58
+#示例文本 59
+#示例文本 60
+#示例文本 61
+#示例文本 62
+#示例文本 56示例文本 57示例文本 58
+#示例文本 59示例文本 60示例文本 61
+#示例文本 56
+#示例文本 57
+#示例文本 58
+#示例文本 59
+#示例文本 60
+#示例文本 56 +# 示例文本 57
+#示例文本 58 +# 示例文本 59
+#示例文本 60 +# 示例文本 61
+#示例文本 62
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '示例文本 49' +# --b = '示例文本 50' +# --c = '示例文本 51' +# --d = '示例文本 52' +# --e = '示例文本 53' +# --f = '示例文本 54' +# --g = '示例文本 55' +# Output: +#示例文本 49
+#示例文本 50
+#示例文本 51
+#示例文本 52
+#示例文本 53
+#示例文本 54
+#示例文本 55
+#示例文本 49示例文本 50示例文本 51
+#示例文本 52示例文本 53示例文本 54
+#示例文本 49
+#示例文本 50
+#示例文本 51
+#示例文本 52
+#示例文本 53
+#示例文本 49 +# 示例文本 50
+#示例文本 51 +# 示例文本 52
+#示例文本 53 +# 示例文本 54
+#示例文本 55
+#示例文本 49
+#示例文本 50
+#示例文本 51
+#示例文本 52
+#示例文本 53
+#示例文本 54
+#示例文本 55
+#示例文本 49示例文本 50示例文本 51
+#示例文本 52示例文本 53示例文本 54
+#示例文本 49
+#示例文本 50
+#示例文本 51
+#示例文本 52
+#示例文本 53
+#示例文本 49 +# 示例文本 50
+#示例文本 51 +# 示例文本 52
+#示例文本 53 +# 示例文本 54
+#示例文本 55
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '示例文本 33' +# --b = '示例文本 34' +# --c = '示例文本 35' +# --d = '示例文本 36' +# --e = '示例文本 37' +# --f = '示例文本 38' +# --g = '示例文本 39' +# Output: +#示例文本 33
+#示例文本 34
+#示例文本 35
+#示例文本 36
+#示例文本 37
+#示例文本 38
+#示例文本 39
+#示例文本 33示例文本 34示例文本 35
+#示例文本 36示例文本 37示例文本 38
+#示例文本 33
+#示例文本 34
+#示例文本 35
+#示例文本 36
+#示例文本 37
+#示例文本 33 +# 示例文本 34
+#示例文本 35 +# 示例文本 36
+#示例文本 37 +# 示例文本 38
+#示例文本 39
+#示例文本 33
+#示例文本 34
+#示例文本 35
+#示例文本 36
+#示例文本 37
+#示例文本 38
+#示例文本 39
+#示例文本 33示例文本 34示例文本 35
+#示例文本 36示例文本 37示例文本 38
+#示例文本 33
+#示例文本 34
+#示例文本 35
+#示例文本 36
+#示例文本 37
+#示例文本 33 +# 示例文本 34
+#示例文本 35 +# 示例文本 36
+#示例文本 37 +# 示例文本 38
+#示例文本 39
+# Return Code: 0 diff --git a/markdown/test20_executable.zip b/markdown/test20_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..5b351d388db1f35b33fca65522afa95148db2763 --- /dev/null +++ b/markdown/test20_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e258ff5f1b4500bf0318c7f12fe42dc8d1214369e86b013699f752f919d5508 +size 35131425 diff --git a/markdown/test2_executable.zip b/markdown/test2_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..7467144dd216b8fce3aa17a2a27d60a120471ed5 --- /dev/null +++ b/markdown/test2_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f57177f86d29ab85dbbb88da2264b0648fd69bbd83f28e5a51b2f7eb59baa99 +size 35130976 diff --git a/markdown/test3.py b/markdown/test3.py new file mode 100644 index 0000000000000000000000000000000000000000..04ba8336e7b30b9d629f45837111233fa55d3914 --- /dev/null +++ b/markdown/test3.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Markdown with table extension") + parser.add_argument('--a', type=str, required=True) + args = parser.parse_args() + + output = markdown.markdown(args.a, extensions=['tables']) # Convert markdown with tables extension + print(output) # Print HTML with table support + +if __name__ == "__main__": + main() + +# ================================================== +# Sample Test Cases (randomly selected) +# ================================================== + +# ===== Test Case 1 ===== +# Input: +# --a = '# 标题1\n这是一段文本。' +# Output: +#这是一段文本。
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = ' 图片' +# Output: +#
图片
GitHub 链接
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '**重要**的*强调*文本' +# Output: +#重要的强调文本
+# Return Code: 0 diff --git a/markdown/test3_executable.zip b/markdown/test3_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..ab47be2c51e683a04fed49fd8cc57ce3a44982f7 --- /dev/null +++ b/markdown/test3_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:123e70504c785b3f8aeabb23362b3b70794ff3dcf1c75fa0465ffd460cfca556 +size 35130638 diff --git a/markdown/test4.py b/markdown/test4.py new file mode 100644 index 0000000000000000000000000000000000000000..e998f3aa7d6baea5102bb5ed5de79dee82406b82 --- /dev/null +++ b/markdown/test4.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Markdown with code highlighting") + parser.add_argument('--a', type=str, required=True) + args = parser.parse_args() + + html = markdown.markdown(args.a, extensions=['codehilite']) # Convert markdown with code highlighting + print(html) # Print HTML with syntax highlighting + +if __name__ == "__main__": + main() + +# ================================================== +# Sample Test Cases (randomly selected) +# ================================================== + +# ===== Test Case 1 ===== +# Input: +# --a = '## 标题2\n这是另一段文本。' +# Output: +#这是另一段文本。
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = ' 图片' +# Output: +#
图片
GitHub 链接
+# Return Code: 0 diff --git a/markdown/test4_executable.zip b/markdown/test4_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..f46c7c740f3f9be061af9239fafc519c0e6bd503 --- /dev/null +++ b/markdown/test4_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:777023f3a425a45dddfaec211380ce55bd0158b5f4f8a3043c873ae13ca2a54a +size 35131771 diff --git a/markdown/test5.py b/markdown/test5.py new file mode 100644 index 0000000000000000000000000000000000000000..01732a825a1c04787ee78fb94985ef086535e6de --- /dev/null +++ b/markdown/test5.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Markdown with fenced code blocks") + parser.add_argument('--a', type=str, required=True) + args = parser.parse_args() + + result = markdown.markdown(args.a, extensions=['fenced_code']) # Convert markdown with fenced code blocks + print(result) # Print HTML with fenced code + +if __name__ == "__main__": + main() + +# ================================================== +# Sample Test Cases (randomly selected) +# ================================================== + +# ===== Test Case 1 ===== +# Input: +# --a = '# 标题1\n这是一段文本。' +# Output: +#这是一段文本。
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '1. 第一\n2. 第二\n3. 第三' +# Output: +#内联代码
javascript
+# console.log('Hello');
```html
+# +# +#```
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '| 列1 | 列2 | 列3 |\n| --- | --- | --- |\n| 数据1 | 数据2 | 数据3 |' +# --b = '| 姓名 | 年龄 | 城市 |\n| ---- | ---- | ---- |\n| 张三 | 25 | 北京 |' +# Output: +#| 列1 | 列2 | 列3 | +# | --- | --- | --- | +# | 数据1 | 数据2 | 数据3 |
+#| 姓名 | 年龄 | 城市 | +# | ---- | ---- | ---- | +# | 张三 | 25 | 北京 |
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '| 项目 | 价格 | 数量 |\n| ---- | ---- | ---- |\n| 苹果 | $1 | 5 |' +# --b = '| 标题1 | 标题2 |\n| ----- | ----- |\n| 内容1 | 内容2 |' +# Output: +#| 项目 | 价格 | 数量 | +# | ---- | ---- | ---- | +# | 苹果 | $1 | 5 |
+#| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '' +# --b = '`内联代码`' +# Output: +#
内联代码
GitHub 链接
+#
图片
示例文本 36
+#示例文本 37
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '| 项目 | 价格 | 数量 |\n| ---- | ---- | ---- |\n| 苹果 | $1 | 5 |' +# --b = '| 标题1 | 标题2 |\n| ----- | ----- |\n| 内容1 | 内容2 |' +# Output: +#| 项目 | +#价格 | +#数量 | +#
|---|---|---|
| 苹果 | +#$1 | +#5 | +#
| 标题1 | 标题2 | +# | ----- | ----- | +# | 内容1 | 内容2 |
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '' +# --b = '`内联代码`' +# Output: +#
内联代码
示例文本 30
+#示例文本 31
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '普通段落\n\n另一个段落' +# --b = '# 大标题\n\n段落内容。\n\n## 子标题\n\n更多内容。' +# Output: +#普通段落
+#另一个段落
+#段落内容。
+#更多内容。
+# Return Code: 0 + +# ===== Test Case 3 ===== +# Input: +# --a = '示例文本 38' +# --b = '示例文本 39' +# Output: +#示例文本 38
+#示例文本 39
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '# 标题1\n这是一段文本。' +# --b = '## 标题2\n这是另一段文本。' +# Output: +#这是一段文本。
+#这是另一段文本。
+# Return Code: 0 diff --git a/markdown/test8_executable.zip b/markdown/test8_executable.zip new file mode 100644 index 0000000000000000000000000000000000000000..79e67fba34b137dccde8c7eb66ca0df226d21254 --- /dev/null +++ b/markdown/test8_executable.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e01101c93bfd8aa45cad660f0adec6b204f093ddadf40980633ecf1801c4d67a +size 35130462 diff --git a/markdown/test9.py b/markdown/test9.py new file mode 100644 index 0000000000000000000000000000000000000000..ebf15da74839038abfc7347d9dca62354bb98ede --- /dev/null +++ b/markdown/test9.py @@ -0,0 +1,102 @@ +#!/usr/bin/env python3 +import argparse +import markdown + +def main(): + parser = argparse.ArgumentParser(description="Nested markdown processing") + parser.add_argument('--a', type=str, required=True) + parser.add_argument('--b', type=str, required=True) + args = parser.parse_args() + + # Process two markdown strings and combine them + html_a = markdown.markdown(args.a) # Convert first input to HTML + html_b = markdown.markdown(args.b) # Convert second input to HTML + combined_html = markdown.markdown(f"{html_a}\n\n{html_b}") # Combine and convert again + print(html_a) # Print first HTML + print(html_b) # Print second HTML + print(combined_html) # Print combined HTML + +if __name__ == "__main__": + main() + +# ================================================== +# Sample Test Cases (randomly selected) +# ================================================== + +# ===== Test Case 1 ===== +# Input: +# --a = "```javascript\nconsole.log('Hello');\n```" +# --b = '```html\n\n \njavascript
+# console.log('Hello');
```html
+# +# +#```
+#javascript
+# console.log('Hello');
```html
+# +# +#```
+# Return Code: 0 + +# ===== Test Case 2 ===== +# Input: +# --a = '```bash\nls -la\necho $PATH\n```' +# --b = '```\n纯文本代码块\n第二行\n第三行\n```' +# Output: +#bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
bash
+# ls -la
+# echo $PATH
纯文本代码块
+# 第二行
+# 第三行
示例文本 38
+#示例文本 39
+#示例文本 38
+# +#示例文本 39
+# Return Code: 0 + +# ===== Test Case 4 ===== +# Input: +# --a = '**粗体文本** 和 *斜体文本*' +# --b = '1. 项目1\n2. 项目2\n3. 项目3' +# Output: +#粗体文本 和 斜体文本
+#粗体文本 和 斜体文本
+# +#*O;dWz;'
+# --data1 = 'd>LPZ5hI6r|2tOQ.'
+# --data2 = 'CT$^b.[:T$x*Il1,'
+# Output:
+# b'\x89\x992\x99\x0e\xb6\xa4\x16\x83\xc0\x14\xe7\xd9\xa4\x03\x95'
+# b'\xd5\xee\xcd\x8e\xb7\xe7\xba\x7fS\xa1\\\xa5m\xf1\xa7d'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --key = '3%AnOxTvOT%^_)Vv'
+# --data1 = '6f,43R3LbD{$p**C'
+# --data2 = '5%I>%P-_t&t*U_Xl'
+# Output:
+# b'\xd8i{\xadrgw\xf7\x11H\xfc\ne\x01\x19\x9b'
+# b':\x98\xd8\x8c\xac\x9d\x13R\xda\x9c`L\xeaM\xd5\xa0'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --key = 'fS>%P59c0)}>BHd?'
+# --data1 = '!GJj%W1E[$[VgYSO'
+# --data2 = 'i$DF[H.mS1GlK*qj'
+# Output:
+# b'#\r\x18F\x0b\xbe\x9e\xd8\x94\xae\xedm\xd7\xbd\xdb\xc5'
+# b'\xf5$\xaf\xaa\x8dY\x8e\xb7\x98]\x08\xc5\x8bB\xde\\'
+# Return Code: 0
diff --git a/pyaes/test6_executable.zip b/pyaes/test6_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..54c2c579434d39aaf289274c16aad085d2950609
--- /dev/null
+++ b/pyaes/test6_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ad2fe3a1665646b7b54de0342197b5acdad03a4370359790ff7ad1383c442075
+size 7379808
diff --git a/pyaes/test7.py b/pyaes/test7.py
new file mode 100644
index 0000000000000000000000000000000000000000..a62ab02ab3bb96ff704f41e13a474f97d9a2d68c
--- /dev/null
+++ b/pyaes/test7.py
@@ -0,0 +1,69 @@
+import argparse
+import pyaes
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--key', type=str, required=True) # 16 bytes key
+ parser.add_argument('--iv', type=str, required=True) # 16 bytes IV
+ parser.add_argument('--data1', type=str, required=True) # 16 bytes data
+ parser.add_argument('--data2', type=str, required=True) # 16 bytes data
+ args = parser.parse_args()
+
+ # Create AES CBC cipher
+ aes = pyaes.AESModeOfOperationCBC(args.key.encode(), args.iv.encode()) # Initialize AES CBC cipher
+ # Encrypt two data blocks
+ ciphertext1 = aes.encrypt(args.data1.encode()) # Encrypt first plaintext
+ ciphertext2 = aes.encrypt(args.data2.encode()) # Encrypt second plaintext
+ print(ciphertext1)
+ print(ciphertext2)
+
+if __name__ == '__main__':
+ main()
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --key = '6G!I:]M.SYzm[v9['
+# --iv = '*ANz^hUTfAHTf!he'
+# --data1 = '^Roq|2L=X{7CRJh{'
+# --data2 = 'Gr.c8LH=f{xn_V0L'
+# Output:
+# b'3\xe9\xbb\x12r\xe6Rd\xdf\xbb\xed@\xf1\x1bZ\x14'
+# b'-\xdf\x14]\xf5\xd9\xc4\x1e\xefiq\xdeI\xe3\x08H'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --key = '{5XdPty;_wI-9d:Y'
+# --iv = 'N5*x-(lLxViKP;#('
+# --data1 = 'SF|e>!}$b_I,ixO?'
+# --data2 = 'EwF+LDX#Q(4k)%4O'
+# Output:
+# b'\x00\xe4\xb6\xc9\xfb\x870\xbd\xdd\xb2\xdd\xbd\x1bg\x89"'
+# b'Y]\xd3l\xf3\xb7;\xf6.\xc6\xec\xaaW\xcf_\x04'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --key = 'd5-y8StWWswYV.Tz'
+# --iv = 'k=Tu_xi%:jOgu#'
+# --data1 = 'ecdN)h6{<>9}Z^wB'
+# --data2 = 'g@Bl58CP3%f7]E_k'
+# Output:
+# b'\x1e\xb6u&\x0cD\xf0\x8d\x11\x1d\xa4\x82-3n\x0e'
+# b'\xe9\xb1\xdc\xab\xcd\xb6\x12j\xe5\x8b\xc6\xdb\t\x02\xb6\xfd'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --key = 'm2(1,-KAx?D8qZ07'
+# --iv = '1)V:v$itSyc&%@11'
+# --data1 = 'R)Slm6EU8EDRKi{C'
+# --data2 = '**vvM_w?TfUBf{vW'
+# Output:
+# b'\x198\xf1\x8c\xa6\xa1\r\xd3"#\x8f\xaeJ\xd1\xe3b'
+# b'b\xdb\x92u\xba\x7fW~$\xb0%\x8c\x84S\xff['
+# Return Code: 0
diff --git a/pyaes/test7_executable.zip b/pyaes/test7_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ce510fff9a2227192e969bd5d55e9af74796996f
--- /dev/null
+++ b/pyaes/test7_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2566baeadbc12e59a191e10229f1b768ddeb9fb1224575a14aaf726c1a99fa6
+size 7377073
diff --git a/pyaes/test8.py b/pyaes/test8.py
new file mode 100644
index 0000000000000000000000000000000000000000..06ea1759cdbfba123ec6aebfd6bfdab9bde6e362
--- /dev/null
+++ b/pyaes/test8.py
@@ -0,0 +1,62 @@
+import argparse
+import pyaes
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--key', type=str, required=True) # 16 bytes key
+ parser.add_argument('--data', type=str, required=True) # 32 bytes data
+ args = parser.parse_args()
+
+ # Create AES ECB cipher
+ aes = pyaes.AESModeOfOperationECB(args.key.encode()) # Initialize AES ECB cipher
+ data = args.data.encode()
+ # Split data into two blocks and encrypt separately
+ block1 = data[:16] # First 16 bytes
+ block2 = data[16:] # Second 16 bytes
+ cipher1 = aes.encrypt(block1) # Encrypt first block
+ cipher2 = aes.encrypt(block2) # Encrypt second block
+ print(cipher1)
+ print(cipher2)
+
+if __name__ == '__main__':
+ main()
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --key = '}sJH]oKmuy=mY:b '
+# --data = 'Zsl0iK]*)|H-)6S;^}^Ugg[#,i@irG1JpKzZ#b;zl'
+# Output:
+# b'M\xa2\xff\xa6\xd2P\x1d\x17F[\xdb\xe2@\x13\x99!'
+# b'?4pe\xfe\x0e\xb2\x86\xae\x81\no\xbfS\x80\xff'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --key = '@5MPFwH{9L&^3p6A'
+# --iv = '[N-(vp&{+jL+5xdd'
+# --data = '+Pphkj&6_^4*ZjS03r;>-yBa{gC5+sa_'
+# Output:
+# b'\xb4\xfd\xfe\x86!\xd7\x92\xa8Vl\x044\xb2\x81}u'
+# b'\x98;\x9f fA\x84\x10\x97\xe6\xcd6\xdd\xca\xc4%'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --key = ':]JeDM:6p=1q=V&:'
+# --iv = 'ixm;e8.wG3u:|sOH'
+# --data = ' x,n@d-9[*VGEeP,cZsDZ2OoT:=P[5oz'
+# Output:
+# b'\xe8\x10\xa4\xc5w\xc9N\x9d\xc2\xfa\x9fo\xa8n_\x16'
+# b'\x9e\xe3@:\xdb\x96\xd2(\x16W\xd8\xc2\x10\xe7\xf5\xc9'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --key = 'E66=SeFT&c6Nle5a'
+# --iv = 'bbf:EG(O}]aGjhJw'
+# --data = '$a 1@fV|QA(%N56>gTwG*maQa3(>14-X'
+# Output:
+# b'\x94\x13\xd7%\xd7\x9f\xd6r\r\x15\xa0\xa9\xde\xc9|\x10'
+# b'\xdb\x19\xcdF\x97\xf8\x80\x84\xedhX1c\xcd/e'
+# Return Code: 0
diff --git a/pyaes/test9_executable.zip b/pyaes/test9_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c2d98b8c0e57a89de5a5c443a293509102c0334f
--- /dev/null
+++ b/pyaes/test9_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de1e1caed3cf5035f92c261acf9ec91069f6329df8ba9df95ceefd6dc54194eb
+size 7379633
diff --git a/rlp/__pycache__/test2.cpython-310.pyc b/rlp/__pycache__/test2.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..16ae0214e284151b60a4c3a94b88a497d10ca409
Binary files /dev/null and b/rlp/__pycache__/test2.cpython-310.pyc differ
diff --git a/rlp/test1.py b/rlp/test1.py
new file mode 100644
index 0000000000000000000000000000000000000000..5b5e51fb62a6e1d0b627355993dd4a5d55b94db1
--- /dev/null
+++ b/rlp/test1.py
@@ -0,0 +1,41 @@
+import argparse
+import rlp
+
+parser = argparse.ArgumentParser()
+parser.add_argument("--a", type=str, required=True)
+args = parser.parse_args()
+
+result = rlp.encode(args.a) # RLP编码字符串
+print(result)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --a = 'longer_string_with_spaces_and_symbols_!@#$'
+# Output:
+# b'\xaalonger_string_with_spaces_and_symbols_!@#$'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --a = '123'
+# Output:
+# b'\x83123'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --a = 'example'
+# Output:
+# b'\x87example'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --a = '0xabcd'
+# Output:
+# b'\x860xabcd'
+# Return Code: 0
diff --git a/rlp/test2.py b/rlp/test2.py
new file mode 100644
index 0000000000000000000000000000000000000000..37ed7a826dd8f024d3742a8b48dc610e1813d8f3
--- /dev/null
+++ b/rlp/test2.py
@@ -0,0 +1,47 @@
+import argparse
+import rlp
+
+parser = argparse.ArgumentParser()
+parser.add_argument("--a", type=str, required=True)
+args = parser.parse_args()
+
+encoded = rlp.encode(args.a) # RLP编码
+print(encoded)
+decoded = rlp.decode(encoded) # RLP解码
+print(decoded)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --a = 'c'
+# Output:
+# b'c'
+# b'c'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --a = 'longer_string_with_spaces_and_symbols_!@#$'
+# Output:
+# b'\xaalonger_string_with_spaces_and_symbols_!@#$'
+# b'longer_string_with_spaces_and_symbols_!@#$'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --a = 'data'
+# Output:
+# b'\x84data'
+# b'data'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --a = 'empty'
+# Output:
+# b'\x85empty'
+# b'empty'
+# Return Code: 0
diff --git a/rlp/test3.py b/rlp/test3.py
new file mode 100644
index 0000000000000000000000000000000000000000..c778f4fd554068d8ebdd64002ff1826c30bebd60
--- /dev/null
+++ b/rlp/test3.py
@@ -0,0 +1,52 @@
+import argparse
+import rlp
+
+parser = argparse.ArgumentParser()
+parser.add_argument("--a", type=str, required=True)
+parser.add_argument("--b", type=str, required=True)
+args = parser.parse_args()
+
+encoded_a = rlp.encode(args.a) # RLP编码第一个字符串
+print(encoded_a)
+encoded_b = rlp.encode(args.b) # RLP编码第二个字符串
+print(encoded_b)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --a = 'test'
+# --b = 'data'
+# Output:
+# b'\x84test'
+# b'\x84data'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --a = 'd'
+# --b = 'e'
+# Output:
+# b'd'
+# b'e'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --a = 'e'
+# --b = '1234567890'
+# Output:
+# b'e'
+# b'\x8a1234567890'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --a = 'c'
+# --b = 'd'
+# Output:
+# b'c'
+# b'd'
+# Return Code: 0
diff --git a/rlp/test4.py b/rlp/test4.py
new file mode 100644
index 0000000000000000000000000000000000000000..a5beadf985e51a2ed6d1572a2fe3d9267551050c
--- /dev/null
+++ b/rlp/test4.py
@@ -0,0 +1,58 @@
+import argparse
+import rlp
+
+parser = argparse.ArgumentParser()
+parser.add_argument("--a", type=str, required=True)
+parser.add_argument("--b", type=str, required=True)
+args = parser.parse_args()
+
+encoded_a = rlp.encode(args.a) # RLP编码第一个字符串
+print(encoded_a)
+encoded_b = rlp.encode(args.b) # RLP编码第二个字符串
+print(encoded_b)
+combined = rlp.encode([encoded_a, encoded_b]) # RLP编码嵌套结构
+print(combined)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --a = '789'
+# --b = '0xabcd'
+# Output:
+# b'\x83789'
+# b'\x860xabcd'
+# b'\xcd\x84\x83789\x87\x860xabcd'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --a = '456'
+# --b = '0x12'
+# Output:
+# b'\x83456'
+# b'\x840x12'
+# b'\xcb\x84\x83456\x85\x840x12'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --a = '0x12'
+# --b = 'a'
+# Output:
+# b'\x840x12'
+# b'a'
+# b'\xc7\x85\x840x12a'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --a = 'empty'
+# --b = 'world'
+# Output:
+# b'\x85empty'
+# b'\x85world'
+# b'\xce\x86\x85empty\x86\x85world'
+# Return Code: 0
diff --git a/rlp/test5.py b/rlp/test5.py
new file mode 100644
index 0000000000000000000000000000000000000000..75db020148ff7786e8a6baab42bf3be79787cf75
--- /dev/null
+++ b/rlp/test5.py
@@ -0,0 +1,69 @@
+import argparse
+import rlp
+
+parser = argparse.ArgumentParser()
+parser.add_argument("--a", type=str, required=True)
+parser.add_argument("--b", type=str, required=True)
+parser.add_argument("--c", type=str, required=True)
+args = parser.parse_args()
+
+encoded_a = rlp.encode(args.a) # RLP编码第一个字符串
+print(encoded_a)
+encoded_b = rlp.encode(args.b) # RLP编码第二个字符串
+print(encoded_b)
+encoded_c = rlp.encode(args.c) # RLP编码第三个字符串
+print(encoded_c)
+combined = rlp.encode([encoded_a, encoded_b, encoded_c]) # RLP编码列表
+print(combined)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --a = '!@#$%^&*()'
+# --b = 'hello'
+# --c = 'data'
+# Output:
+# b'\x8a!@#$%^&*()'
+# b'\x85hello'
+# b'\x84data'
+# b'\xd9\x8b\x8a!@#$%^&*()\x86\x85hello\x85\x84data'
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --a = '789'
+# --b = 'a'
+# --c = 'd'
+# Output:
+# b'\x83789'
+# b'a'
+# b'd'
+# b'\xc7\x84\x83789ad'
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --a = 'example'
+# --b = '789'
+# --c = 'a'
+# Output:
+# b'\x87example'
+# b'\x83789'
+# b'a'
+# b'\xcf\x88\x87example\x84\x83789a'
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --a = 'e'
+# --b = '!@#$%^&*()'
+# --c = 'hello'
+# Output:
+# b'e'
+# b'\x8a!@#$%^&*()'
+# b'\x85hello'
+# b'\xd4e\x8b\x8a!@#$%^&*()\x86\x85hello'
+# Return Code: 0
diff --git a/rsa/__pycache__/final_test_cases.cpython-310.pyc b/rsa/__pycache__/final_test_cases.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d4c911fb676c635495b2282f1af10ca0fd53a810
Binary files /dev/null and b/rsa/__pycache__/final_test_cases.cpython-310.pyc differ
diff --git a/rsa/__pycache__/test19.cpython-310.pyc b/rsa/__pycache__/test19.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..775e9ecd67d164a019c3ae1fe9179e3ebdc01590
Binary files /dev/null and b/rsa/__pycache__/test19.cpython-310.pyc differ
diff --git a/rsa/__pycache__/test8.cpython-310.pyc b/rsa/__pycache__/test8.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..cbbe321b5dfd55c60f1f1b5c7f4795a2094df990
Binary files /dev/null and b/rsa/__pycache__/test8.cpython-310.pyc differ
diff --git a/rsa/__pycache__/test_rsa_length.cpython-310.pyc b/rsa/__pycache__/test_rsa_length.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..54276187ac886aa3ac59059b2893d3c1f4a990cb
Binary files /dev/null and b/rsa/__pycache__/test_rsa_length.cpython-310.pyc differ
diff --git a/rsa/test10.py b/rsa/test10.py
new file mode 100644
index 0000000000000000000000000000000000000000..de80aa4238870da362ffcb44072be99d81dec0d0
--- /dev/null
+++ b/rsa/test10.py
@@ -0,0 +1,66 @@
+import argparse
+import rsa
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--multiplier', type=int, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+multiplier = args.multiplier
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 加密固定消息
+message = b'Test'
+cipher = rsa.encrypt(message, pub_key)
+
+# 计算需要加密的次数
+num_encryptions = len(cipher) * multiplier
+
+# 统计加密操作的影响(模拟多次加密)
+result = 0
+for i in range(num_encryptions):
+ if i % 2 == 0:
+ result += len(cipher)
+ else:
+ result -= 1
+
+print(result)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 3072
+# --multiplier = 40
+# Output:
+# 2941440
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 2048
+# --multiplier = 31
+# Output:
+# 1011840
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 2048
+# --multiplier = 44
+# Output:
+# 1436160
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 256
+# --multiplier = 7
+# Output:
+# 3472
+# Return Code: 0
diff --git a/rsa/test10_executable.zip b/rsa/test10_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ce1b42fb374612af0dcd1020742af9e0271ff976
--- /dev/null
+++ b/rsa/test10_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f72191f703339dd674a5febbbc6eb64970ec45e6c7e4dd38e873e0447f14f3f
+size 9582618
diff --git a/rsa/test11.py b/rsa/test11.py
new file mode 100644
index 0000000000000000000000000000000000000000..df08b1a4d410ef660d5c86878a21b397ffde5e89
--- /dev/null
+++ b/rsa/test11.py
@@ -0,0 +1,65 @@
+import argparse
+import rsa
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--hash_method', type=str, required=True, choices=['SHA-1', 'SHA-256', 'MD5'])
+parser.add_argument('--message', type=str, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+hash_method = args.hash_method
+message = args.message.encode('utf-8')
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 使用私钥和指定的哈希算法对消息进行签名
+signature = rsa.sign(message, priv_key, hash_method)
+
+# 验证签名是否有效(使用公钥)
+try:
+ rsa.verify(message, signature, pub_key)
+ print(1) # 验证成功
+except rsa.VerificationError:
+ print(0) # 验证失败
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 512
+# --hash_method = 'SHA-256'
+# --message = 'Edges: "quotes\' and back\\slash'
+# Output:
+# 1
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 512
+# --hash_method = 'MD5'
+# --message = 'Special chars: !@#$%^&*()'
+# Output:
+# 1
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 2048
+# --hash_method = 'SHA-1'
+# --message = 'Special chars: !@#$%^&*()'
+# Output:
+# 1
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 2048
+# --hash_method = 'SHA-256'
+# --message = 'Special chars: !@#$%^&*()'
+# Output:
+# 1
+# Return Code: 0
diff --git a/rsa/test11_executable.zip b/rsa/test11_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6872302156b961fe8145b4f9dfd64976c9bf0d56
--- /dev/null
+++ b/rsa/test11_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:07ae1f076f2f8ce54437b226b236017306bdb15a3125cae612db9e9cbba3bae4
+size 9582549
diff --git a/rsa/test15.py b/rsa/test15.py
new file mode 100644
index 0000000000000000000000000000000000000000..5980daf67e79d7eb1b97f39c0a4c4ecd223ef785
--- /dev/null
+++ b/rsa/test15.py
@@ -0,0 +1,56 @@
+import argparse
+import rsa
+from rsa import common
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--n', type=int, required=True)
+parser.add_argument('--exponent', type=int, required=True)
+args = parser.parse_args()
+
+n = args.n
+exponent = args.exponent
+
+# 使用common.bit_size计算n的比特长度
+bits_n = common.bit_size(n)
+
+# 计算整数除法:n // (exponent^2)
+quotient = n // (exponent * exponent)
+
+# 输出两个结果的乘积
+print(bits_n * quotient)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --n = 756137636850364349999064329607140751819230984012842010964866
+# --exponent = 34
+# Output:
+# 130165562052960645025790485806073537726666925448577474205830
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --n = 89886426607682488340318951164687907521144930530574675205117
+# --exponent = 50
+# Output:
+# 7047095846042307085881005771311531949657762553597054536072
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --n = 519303953141439560519607260364212609224971451870755679461615
+# --exponent = 11
+# Output:
+# 854061873348317954904147477789076935832804288613887439775584
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --n = 93439213398521765496820473544357707125013134312580874685037
+# --exponent = 37
+# Output:
+# 13377710610745263723430834780638502992332048447966290312816
+# Return Code: 0
diff --git a/rsa/test15_executable.zip b/rsa/test15_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..72ac30832d8c0956c25215b6fdd5eb5ff81e8bbd
--- /dev/null
+++ b/rsa/test15_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6fbd52c75c7ed5e1a1f28a2e1b4384310dff7a1c40d19c2098c93f128ac9c11c
+size 9583534
diff --git a/rsa/test16.py b/rsa/test16.py
new file mode 100644
index 0000000000000000000000000000000000000000..4ed42b1d159165956f1829d2435fc3630fa88123
--- /dev/null
+++ b/rsa/test16.py
@@ -0,0 +1,65 @@
+import argparse
+import rsa
+from rsa import transform
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--n', type=int, required=True)
+parser.add_argument('--e', type=int, required=True)
+parser.add_argument('--d', type=int, required=True)
+args = parser.parse_args()
+
+n = args.n
+e = args.e
+d = args.d
+
+# 使用transform.int2bytes将整数n转换为字节表示
+n_bytes = transform.int2bytes(n)
+
+# 计算e*d的值
+ed_product = e * d
+
+# 将ed_product转换为字符串,并计算与n_bytes长度的某种组合
+ed_str = str(ed_product)
+result = len(ed_str) + len(n_bytes)
+
+print(result)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --n = 61473422333542041928446724405108857732014602306467353176229
+# --e = 434946039822715741912675419932457539859824305462910070267940
+# --d = 725433707802036852835059222838945508612845338644935758010101
+# Output:
+# 145
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --n = 1416538314655225006012207547809141698128879527211622725688537
+# --e = 956192125339070817103733272380544088210064109411812688308736
+# --d = 472202229440548620966878892852749352945940228418254241448450
+# Output:
+# 145
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --n = 793298544869016785362323987078326721420522652692852446574544
+# --e = 643440265913440880776532454293414532639285044965796542576766
+# --d = 577577858110612499446148956865306457516602472491340986268495
+# Output:
+# 145
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --n = 1115915237502145815196536455377556088653238789624967897272074
+# --e = 1261957984265611057788511496647716376051797551167308661006223
+# --d = 1466858114601655697293611296869332855364994009341778141586064
+# Output:
+# 146
+# Return Code: 0
diff --git a/rsa/test16_executable.zip b/rsa/test16_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..81b09131d0f6eb6b09d7137fef2941694a118733
--- /dev/null
+++ b/rsa/test16_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ec1bf9ceb3f2e8614ab94c38c28972443da5063da8bf1ef350e80054d65760df
+size 9582503
diff --git a/rsa/test17.py b/rsa/test17.py
new file mode 100644
index 0000000000000000000000000000000000000000..6be84ecd70a9e112314bbbffc36b9ecac58f7d81
--- /dev/null
+++ b/rsa/test17.py
@@ -0,0 +1,70 @@
+import argparse
+import rsa
+import base64
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--messages', type=str, nargs='+', required=True)
+parser.add_argument('--sigs', type=str, nargs='+', required=True)
+args = parser.parse_args()
+
+bits = args.bits
+messages = args.messages
+sigs = args.sigs
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 批量验证多个消息的签名
+valid_count = 0
+for msg, sig_b64 in zip(messages, sigs):
+ msg_bytes = msg.encode('utf-8')
+ sig = base64.b64decode(sig_b64)
+ try:
+ # 使用公钥验证签名
+ rsa.verify(msg_bytes, sig, pub_key)
+ valid_count += 1
+ except rsa.VerificationError:
+ pass
+
+print(valid_count)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 1024
+# --messages = ['test']
+# --sigs = ['EotNkSI/nnRCOqf4XkNe89qXYn2JTWWFCWtb5hfamN9LKd55TJOi2PLeH1eQtfeo90UwFnQOvB8h0eV0XjTsCteeK0q7dv+JGUhI6y97W0tvnNHV1f17yF0ukrg6Hn28FwNNbmfzNHpx4pz775cxFRLUcPPKe/DjH/Dlub2emVY=', 'qTM/pWNUxMP3gLBkLQcPVW1B5lFd3fSLdriOgJXzvWaQLPW3hJB+qQ7ApbeMmSOO+icgEx9OJAIwZa15MoiObG31PG3GIMVrMSo0O25/I474At/xEI82HuI6FQojDE3JIKyHZIi6APvpjKm+sGqT20nEmo029HmSu16eo+DfQRY=', 'Rsc0NkIhZawCx4mOZo92SogaqIM94GPOiLA9hcJSFCW8d26kleOWcAVQCaCjfCMwkPpW+kmBoUB106gwMP4i9He9xZW7X99Vtl+IKROs4viZN54+dt+5K3Fv/dbU1WBZY1Suj5jaPtTgKseZ0BZbj3N20GEdCraCfqWAXHh8M0Y=']
+# Output:
+# 0
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 2048
+# --messages = ['🎉 Emoji test 🎊']
+# --sigs = ['wFKAk7qAEmlhvGG5a0nv+cocr3asyC6LONCy0drMZVka/XfCMzNY5AizZLd9b7BHAnCTNQCdRbIZIpO0DssyKdEufP2xkbgzEGJLWiLzZ2cWx6WzRSdHzU8Os3TcCNTgWL5dRw4ZI8FfkWy62XFapmkpL3376qCVvw51oPOXDlI=', 'FDUgFS2AwFAmXklidYOGaStziGuUtxkHcZugcrrtIX75IE5Ix5xuUmBPveky+pIB5+D0xLQ62/cO8v099hnLgHza1T+smhtUzXxgW+a5Jvd8WPpUqXr5jBGTeCSGuV/w/AHfQ1emLk2bQHy7HWQ4GlN22JNvuyB9az6u/VqViHI=']
+# Output:
+# 0
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 256
+# --messages = ['秘密消息', 'Special chars: !@#$%^&*()']
+# --sigs = ['ZGxMGIFymF1Ep/TetxdrMOr24wOg+rOP0o9MIXOmKNKmnsagZPrza40Smw9+eaar0w+OZDS+Aji2qH0v/NX72kCBM/ZSYqZQqD1gy6TBHfqPv26aV+QCP/nMp1SQd0WuCb1xWAX1VeLgVyid7AyxG0wa93DrMcpv16AssTOoMM0=', 'lfSd+6Ry2R7d4WfYrk7Plz7P+/DPlLESdvEUdw2wEBxRJFDI0ADA5rmqhz+YgMoCUHwxwmNFrm87OB07oAzKk56ALuH/inYscZBs08pumO8H9evIn1yXPp81LTV3tpo+sTS4xkg7P94DQr9swj8w/2BSGjLmuslsKfxMEqR4o1A=', 'LceE+eqH1yLA1EeY5Ku6s4NmrRJXs2z3BYlJnoX6kIF296QT8xaoMl4HB93ABiIeWfzn0SGPrvGaQmavlhe2Zz8/jHGSFpqNddWefkbnxh7Y2KsWgO+TiiLo71Fs6Promoq3B8SLxD54XTutMwP7EqVCl2zOoS/q15LjbRSgo10=']
+# Output:
+# 0
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 1024
+# --messages = ['Lorem ipsum dolor sit amet', 'Test message']
+# --sigs = ['UzKEBQB7f/FKl0HPXvavK8eVMgpL7lyWFherRGQs1pRmNM9Syp+V94ADBWImQaMAt2dyUOhA4vvgE/kwjewhIIapeWnv+g1Rt9+pT1RFbBCvErS6+QLv5Gdfm6lLiXSYKvWeoRvQvZ9fzqLvM83qohixQbJ/FOML4nUt62QzUko=', 'GOK4OHRJ1deYmJF1cnDEBFk4zBaWkrQWRrcDT83CwwiwASJyKw/t8Iqft4EhnIxLVTDjjMMdLbry2OtVSssi6GbA5wFe2ogxuf1feP92AHNKoX7osW4doYSPNCiO1RNjAkjLa5jsXGooNE2MFvhFl1752Wb3iWEKgB6IJfrE4tA=', 'uH+xoz8GpMjxZtb/QyUo3xAc14EzwQJipfJhA2kW0p230fGwJBT/2odb+aIWKGYtOr4KvXY+7FoKQgvxCzTgxi9u0G7BdHcWE9tgrOi9BSHj/eO2g6QvgzqZy5cpr9neTrTkHxLTjRjF0ljOd0FMCqD8Rk94HbMc4JdPjx6U3KQ=']
+# Output:
+# 0
+# Return Code: 0
diff --git a/rsa/test17_executable.zip b/rsa/test17_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d28286b528cc167ec0ef6f4ae0e1c122b75208bb
--- /dev/null
+++ b/rsa/test17_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:269a9e990a21a788c1654fd9d66f418f91c6a19f391df1b2077e9b60c1d5cd78
+size 9583879
diff --git a/rsa/test18.py b/rsa/test18.py
new file mode 100644
index 0000000000000000000000000000000000000000..9f52ec98b777590b1dc56985255a3ac97b9ae3fb
--- /dev/null
+++ b/rsa/test18.py
@@ -0,0 +1,82 @@
+import argparse
+import rsa
+from simpleeval import SimpleEval
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--threshold', type=int, required=True)
+parser.add_argument('--msg', type=str, required=True)
+parser.add_argument('--calc', type=str, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+threshold = args.threshold
+msg = args.msg
+calc = args.calc
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 加密消息
+cipher = rsa.encrypt(msg.encode('utf-8'), pub_key)
+
+# 获取密文长度
+cipher_len = len(cipher)
+
+# 使用simpleeval进行计算(基于密文长度、阈值和密钥长度)
+s = SimpleEval()
+s.names['cipher_len'] = cipher_len
+s.names['threshold'] = threshold
+s.names['bits'] = bits
+result = s.eval(calc)
+
+# 根据计算结果决定是否再次加密
+if result > threshold:
+ cipher2 = rsa.encrypt(msg.encode('utf-8'), pub_key)
+ print(len(cipher) + len(cipher2))
+else:
+ print(cipher_len)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 2048
+# --threshold = 30
+# --msg = 'CSV,TSV;special|delimiters'
+# --calc = 'bits * threshold // cipher_len'
+# Output:
+# 512
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 2048
+# --threshold = 39
+# --msg = 'Multiline\nstring\nwith newlines'
+# --calc = 'bits * threshold // cipher_len'
+# Output:
+# 512
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 256
+# --threshold = 32
+# --msg = 'Hello RSA'
+# --calc = 'cipher_len - threshold'
+# Output:
+# 32
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 512
+# --threshold = 15
+# --msg = 'CSV,TSV;special|delimiters'
+# --calc = 'bits * threshold // cipher_len'
+# Output:
+# 128
+# Return Code: 0
diff --git a/rsa/test18_executable.zip b/rsa/test18_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..16c6403b505213a0faf35eaf1bd934e7213c4f5b
--- /dev/null
+++ b/rsa/test18_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9678b281843f037ccf155dff0a585cf12da803471cce962b8c0e052603f819fd
+size 9601547
diff --git a/rsa/test19.py b/rsa/test19.py
new file mode 100644
index 0000000000000000000000000000000000000000..4c83a9952ad9cfb0532bee5d76ee90b4f88d7b8e
--- /dev/null
+++ b/rsa/test19.py
@@ -0,0 +1,70 @@
+import argparse
+import rsa
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--rounds', type=int, required=True)
+parser.add_argument('--base_message', type=str, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+rounds = args.rounds
+base_msg = args.base_message
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+current = base_msg.encode('utf-8')
+total_len = 0
+
+# 进行多轮加密-解密循环
+for r in range(rounds):
+ # 使用公钥加密当前消息
+ cipher = rsa.encrypt(current, pub_key)
+ total_len += len(cipher)
+
+ # 使用私钥解密密文,将结果作为下一轮的输入
+ plain = rsa.decrypt(cipher, priv_key)
+ current = plain
+
+print(total_len)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 256
+# --rounds = 25
+# --base_message = '1234567890'
+# Output:
+# 800
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 1024
+# --rounds = 10
+# --base_message = '日本語メッセージ'
+# Output:
+# 1280
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 2048
+# --rounds = 23
+# --base_message = 'Multiline\nstring\nwith newlines'
+# Output:
+# 5888
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 256
+# --rounds = 8
+# --base_message = ''
+# Output:
+# 256
+# Return Code: 0
diff --git a/rsa/test19_executable.zip b/rsa/test19_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..924324a452fd893c6d37a22072942e25e43afd89
--- /dev/null
+++ b/rsa/test19_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a88b97ca092badd8acc60ef91e987fabc256408622f4d6e28a582e170cdb45d5
+size 9583030
diff --git a/rsa/test2.py b/rsa/test2.py
new file mode 100644
index 0000000000000000000000000000000000000000..bb7e9209921968ed05b4de141ae40ae87d146841
--- /dev/null
+++ b/rsa/test2.py
@@ -0,0 +1,52 @@
+import argparse
+import rsa
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+
+# 生成指定比特长度的RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 加密固定消息(使用PKCS#1 v1.5填充)
+message = b'Hello, RSA!'
+ciphertext = rsa.encrypt(message, pub_key)
+
+# 输出密文的长度(字节数)
+print(len(ciphertext))
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 256
+# Output:
+# 32
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 4096
+# Output:
+# (no output)
+# Stderr:
+# Timeout
+# Return Code: -1
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 1024
+# Output:
+# 128
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 1024
+# Output:
+# 128
+# Return Code: 0
diff --git a/rsa/test2_executable.zip b/rsa/test2_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5ac208fdd5b3517d632fed66e4cb7c755b71def8
--- /dev/null
+++ b/rsa/test2_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e403beb96bed0c47ebfd81806c0df2c12e3ed5fc0b3d8bba4783cd069bac47b5
+size 9583218
diff --git a/rsa/test5.py b/rsa/test5.py
new file mode 100644
index 0000000000000000000000000000000000000000..5242f4e11f915b7d4cb7628dff0fca0c846ec45c
--- /dev/null
+++ b/rsa/test5.py
@@ -0,0 +1,55 @@
+import argparse
+import rsa
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--message', type=str, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+message = args.message.encode('utf-8')
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 使用私钥对消息进行签名(使用SHA-256哈希算法)
+signature = rsa.sign(message, priv_key, 'SHA-256')
+
+# 输出签名的长度(字节数)
+print(len(signature))
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 1024
+# --message = 'Quick brown fox'
+# Output:
+# 128
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 1024
+# --message = '日本語メッセージ'
+# Output:
+# 128
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 2048
+# --message = 'Quick brown fox'
+# Output:
+# 256
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 512
+# --message = 'CSV,TSV;special|delimiters'
+# Output:
+# 64
+# Return Code: 0
diff --git a/rsa/test5_executable.zip b/rsa/test5_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..1af8f15040ba7189171f31a916f5afb0bc9f834f
--- /dev/null
+++ b/rsa/test5_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f9277ceea9cc1883436bd48558c24ec46ccb965a529b0c263bd34f616e4db617
+size 9582987
diff --git a/rsa/test7.py b/rsa/test7.py
new file mode 100644
index 0000000000000000000000000000000000000000..49fa660949deacf7b8511ee29d126dcd69699158
--- /dev/null
+++ b/rsa/test7.py
@@ -0,0 +1,52 @@
+import argparse
+import rsa
+from rsa import common
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--n1', type=int, required=True)
+parser.add_argument('--n2', type=int, required=True)
+args = parser.parse_args()
+
+n1 = args.n1
+n2 = args.n2
+
+# 使用扩展欧几里得算法计算两个数的最大公约数(返回gcd, x, y)
+gcd, x, y = common.extended_gcd(n1, n2)
+
+print(gcd)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --n1 = 945305841747173044366153290829458070797198524794969638094748
+# --n2 = 1096957712711183727051447410458463261192452258274943730597392
+# Output:
+# 28
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --n1 = 862563244280361720430936090782061972639133461760421935416469
+# --n2 = 250231244506319496742698267098114507172108986173557935413627
+# Output:
+# 1
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --n1 = 1103197889821571001755353786824125563871303524810271657600355
+# --n2 = 162303944925030688024544842154687779006658147939560239304599
+# Output:
+# 3
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --n1 = 1038438389780517430913614247295868356109570389186769959830599
+# --n2 = 896054179266433843203624998225668475432079047981683614325719
+# Output:
+# 1
+# Return Code: 0
diff --git a/rsa/test7_executable.zip b/rsa/test7_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..686ae8bed9ca0c1eb929b4ab87b374f4e238beae
--- /dev/null
+++ b/rsa/test7_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27f06b4eee32939324a9aa5adb99e4e66af1a2cf7d81ad069990de53e3ecfdfb
+size 9583243
diff --git a/rsa/test8.py b/rsa/test8.py
new file mode 100644
index 0000000000000000000000000000000000000000..a1a8da3f8c6833eee33322b13da8c9d6bf948f44
--- /dev/null
+++ b/rsa/test8.py
@@ -0,0 +1,65 @@
+import argparse
+import rsa
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--bits', type=int, required=True)
+parser.add_argument('--msg_len', type=int, required=True)
+args = parser.parse_args()
+
+bits = args.bits
+msg_len = args.msg_len
+
+# 生成RSA密钥对
+(pub_key, priv_key) = rsa.newkeys(bits)
+
+# 创建指定长度的消息
+message = b'A' * msg_len
+
+# 加密长消息
+ciphertext = rsa.encrypt(message, pub_key)
+
+# 对多个短消息进行加密并计算总密文长度
+total_len = 0
+for i in range(3):
+ short_msg = f"Msg{i}".encode('utf-8')
+ cipher = rsa.encrypt(short_msg, pub_key)
+ total_len += len(cipher)
+
+# 输出长消息密文长度与短消息总长度的差值
+print(len(ciphertext) - total_len)
+
+# ==================================================
+# Sample Test Cases (randomly selected)
+# ==================================================
+
+# ===== Test Case 1 =====
+# Input:
+# --bits = 1024
+# --msg_len = 26
+# Output:
+# -256
+# Return Code: 0
+
+# ===== Test Case 2 =====
+# Input:
+# --bits = 2048
+# --msg_len = 47
+# Output:
+# -512
+# Return Code: 0
+
+# ===== Test Case 3 =====
+# Input:
+# --bits = 256
+# --msg_len = 4
+# Output:
+# -64
+# Return Code: 0
+
+# ===== Test Case 4 =====
+# Input:
+# --bits = 512
+# --msg_len = 10
+# Output:
+# -128
+# Return Code: 0
diff --git a/rsa/test8_executable.zip b/rsa/test8_executable.zip
new file mode 100644
index 0000000000000000000000000000000000000000..75aeaa3dc848ee8755316d23df2787bd2751313c
--- /dev/null
+++ b/rsa/test8_executable.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2bc6287940a02117e45e6724a604fef299dff22bc64303a87015fbae55a55e02
+size 9583090
diff --git a/schedule/__pycache__/test14.cpython-310.pyc b/schedule/__pycache__/test14.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..9a029131eccff584bc75515cf262e15d6779fed9
Binary files /dev/null and b/schedule/__pycache__/test14.cpython-310.pyc differ
diff --git a/schedule/__pycache__/test16.cpython-310.pyc b/schedule/__pycache__/test16.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..e728626b58da9fe5f02879b27a19522ed33a92dd
Binary files /dev/null and b/schedule/__pycache__/test16.cpython-310.pyc differ
diff --git a/schedule/py_output.txt b/schedule/py_output.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7ee84cb42f2aaea15d356b6dfdd1a9c53c5890c7
--- /dev/null
+++ b/schedule/py_output.txt
@@ -0,0 +1,13 @@
+5
+10
+15
+Job(interval=1, unit=days, do=