mirror of
https://github.com/zenlm/zen-blog.git
synced 2026-11-03 14:11:45 +00:00
- Replace Hugo static site generator with Next.js 15 + fumadocs-mdx - Convert 71 blog posts from Hugo format to MDX/MD - Convert Hugo shortcodes (figure, button, video, example, fullwidth) to MDX components (Figure, LinkButton, Video, Fullwidth) - Add remark-math + rehype-katex for LaTeX math rendering - Copy JSON case files to public/cases/ for reference - Update branding for Zen LM (site-nav, footer, metadata) - Static export for Cloudflare Pages deployment - Chinese (.zh.md) translations deferred for future migration
13 lines
1.0 KiB
JSON
13 lines
1.0 KiB
JSON
{
|
|
"title": "Example: Code",
|
|
"messages": [
|
|
{
|
|
"role": "User",
|
|
"content": "convert the process into a python code program\n"
|
|
},
|
|
{
|
|
"role": "Qwen-VL",
|
|
"content": "The image shows a Scratch programming block, which can be converted into Python code as follows:\n```python\nimport random\n\n# Set up the variables\na = random.randint(1, 50)\nb = random.randint(1, 50)\nanswer = a + b\n\n# Ask the user for their input\nresponse = int(input(f\"What is {a} + {b}? \"))\n\n# Check if the response matches the answer\nif response == answer:\n print(\"Correct!\")\nelse:\n print(\"Incorrect!\")\n```\n\nThis Python code generates two random numbers between 1 and 50, adds them together to get the answer, and then asks the user for their response. It then checks if the response matches the answer, and prints out a message accordingly."
|
|
}
|
|
]
|
|
} |