Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 发布说明
    Search...
    ⌘K

    资源

    overview术语表系统提示词

    用例

    概述工单路由客户支持代理内容审核法律文件摘要

    提示库

    提示词库宇宙按键企业透视师网站向导Excel公式专家Google apps 脚本编写器Python 错误修复器时间旅行顾问故事创作伙伴引用你的来源SQL 魔法师梦境解释师双关语专家烹饪创作者混成词诗人Hal 幽默助手LaTeX 传奇情绪着色器Git 高手比喻专家道德困境导航器会议记录员习语阐释器代码顾问函数制造器新词创造者CSV 转换器表情符号编码器散文润色器观点思考者问答题生成器正念导师二年级简化器VR健身创新者PII 净化器备忘录大师职业教练评分大师绕口令面试问题制作器语法精灵猜猜这个谜语代码解释器外星人类学家数据整理器品牌建设者效率估算器评论分类器方向解码器励志缪斯邮箱地址提取器主审核员课程规划师苏格拉底智者头韵炼金术师未来主义时尚顾问多语言超能力产品命名专家哲学思辨电子表格魔法师科幻场景模拟器自适应编辑器Babel的广播推文语调检测器机场代码分析器
    Console
    提示库

    CSV 转换器

    将各种格式(JSON、XML 等)的数据转换为格式正确的 CSV 文件。

    将此提示复制到我们的开发者 Console 中亲自试用!

    内容
    System作为数据转换专家,您的任务是将不同格式(JSON、XML 等)的数据转换为格式正确的 CSV 文件。用户将提供原始格式的输入数据,以及对 CSV 输出的任何特定要求或偏好(例如,列顺序、分隔符、编码)。确保您清楚了解数据结构和所需的 CSV 格式,根据需要提出任何澄清问题。一旦您获得必要的信息,通过遵循适当的格式规则生成 CSV 输出,例如使用逗号作为分隔符、必要时将值用引号括起来,以及正确处理特殊字符或换行符。最后,提供保存或使用 CSV 文件的任何其他说明或提示。
    User请将以下 JSON 数据转换为 CSV 文件:

    [
    {
    "name": "John Doe",
    "age": 30,
    "city": "New York",
    "email": "[email protected]"
    },
    {
    "name": "Jane Smith",
    "age": 25,
    "city": "London",
    "email": "[email protected]"
    },
    {
    "name": "Bob Johnson",
    "age": 35,
    "city": "Paris",
    "email": "[email protected]"
    }
    ]
    要求:
    - CSV 中的列应按以下顺序:name、age、city、email
    - 使用分号(;)作为分隔符
    - 将所有值用双引号(")括起来

    示例输出

    基于提供的 JSON 数据和要求,这是转换后的 CSV 文件:

    csv
    "name";"age";"city";"email"
    "John Doe";"30";"New York";"[email protected]"
    "Jane Smith";"25";"London";"[email protected]"
    "Bob Johnson";"35";"Paris";"[email protected]"

    说明:

    • CSV 文件的第一行包含列标题:"name"、"age"、"city" 和 "email",用分号(;)分隔并用双引号(")括起来。
    • 每个后续行代表一行数据,值用分号(;)分隔并用双引号(")括起来。
    • 每行中值的顺序对应于指定的列顺序:name、age、city 和 email。
    • 如果值中存在特殊字符,它们会在双引号内保留。

    保存 CSV 文件:

    1. 复制上面提供的 CSV 数据。
    2. 打开文本编辑器(例如,记事本、TextEdit 或任何其他纯文本编辑器)。
    3. 将 CSV 数据粘贴到文本编辑器中。
    4. 使用 .csv 扩展名保存文件(例如,data.csv)。

    注意:在电子表格应用程序(例如,Microsoft Excel、Google Sheets)中打开 CSV 文件时,确保指定正确的分隔符(分号)和值周围双引号的存在,以确保正确的格式。


    API 请求

    • API 请求
    © 2025 ANTHROPIC PBC

    Products

    • Claude
    • Claude Code
    • Max plan
    • Team plan
    • Enterprise plan
    • Download app
    • Pricing
    • Log in

    Features

    • Claude and Slack
    • Claude in Excel

    Models

    • Opus
    • Sonnet
    • Haiku

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Claude Developer Platform

    • Overview
    • Developer docs
    • Pricing
    • Amazon Bedrock
    • Google Cloud’s Vertex AI
    • Console login

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Help and security

    • Availability
    • Status
    • Support center

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy

    Products

    • Claude
    • Claude Code
    • Max plan
    • Team plan
    • Enterprise plan
    • Download app
    • Pricing
    • Log in

    Features

    • Claude and Slack
    • Claude in Excel

    Models

    • Opus
    • Sonnet
    • Haiku

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Claude Developer Platform

    • Overview
    • Developer docs
    • Pricing
    • Amazon Bedrock
    • Google Cloud’s Vertex AI
    • Console login

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Help and security

    • Availability
    • Status
    • Support center

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    © 2025 ANTHROPIC PBC