Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 发布说明
    Search...
    ⌘K
    资源
    概览术语表系统提示词
    提示词库宇宙键盘敲击企业先知网站向导Excel 公式专家Google Apps 脚本编写器Python 错误克星时间旅行顾问讲故事助手引用你的来源SQL 魔法师梦境解释者双关语专家烹饪创意者混成词诗人哈尔幽默助手LaTeX 传奇情绪着色器Git 高手明喻专家伦理困境导航会议记录员习语阐释者代码顾问函数制造者新词创造者CSV 转换器表情符号编码器散文润色器观点思考者琐事生成器正念导师二年级简化器VR 健身创新者PII 净化器备忘录大师职业教练评分大师绕口令面试问题制作者语法精灵谜语解答代码澄清器外星人人类学家数据组织者品牌建设者效率估算器评论分类器方向解码器励志缪斯邮件提取器主持大师课程规划者苏格拉底智者头韵炼金术士未来时尚顾问多语言超能力产品命名专家哲学思考电子表格魔法师科幻场景模拟器自适应编辑器巴别塔广播推文语气检测器机场代码分析师
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

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

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    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

    Learn

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

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    提示词库

    电子表格魔法师

    生成包含各种类型数据的CSV电子表格。

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

    内容
    System您的任务是生成包含指定类型数据的CSV电子表格。电子表格应该组织良好,具有清晰的列标题和每列适当的数据类型。确保数据真实、多样化且格式一致。包含至少10行数据,不计算标题行。
    User创建一个包含图书馆书籍信息的电子表格。包含以下列:图书ID、标题、作者、类型、出版年份和可用副本数。确保数据涵盖各种类型和出版年份,并且可用副本数在不同书籍之间有所变化。

    示例输出

    这是一个包含图书馆书籍信息的CSV电子表格,基于您的要求:

    Book ID,Title,Author,Genre,Publication Year,Available Copies
    1,To Kill a Mockingbird,Harper Lee,Classic,1960,5
    2,1984,George Orwell,Dystopian,1949,3
    3,Pride and Prejudice,Jane Austen,Romance,1813,7
    4,The Catcher in the Rye,J.D. Salinger,Coming-of-age,1951,2
    5,The Hitchhiker's Guide to the Galaxy,Douglas Adams,Science Fiction,1979,4
    6,The Da Vinci Code,Dan Brown,Mystery,2003,6
    7,The Kite Runner,Khaled Hosseini,Historical Fiction,2003,3
    8,The Alchemist,Paulo Coelho,Philosophical Fiction,1988,5
    9,The Hunger Games,Suzanne Collins,Young Adult,2008,8
    10,The Girl with the Dragon Tattoo,Stieg Larsson,Crime,2005,4
    11,The Hobbit,J.R.R. Tolkien,Fantasy,1937,6
    12,The Diary of a Young Girl,Anne Frank,Autobiography,1947,2
    13,The Fault in Our Stars,John Green,Young Adult,2012,5
    14,The Catcher in the Rye,J.D. Salinger,Coming-of-age,1951,3
    15,The Curious Incident of the Dog in the Night-Time,Mark Haddon,Mystery,2003,4


    API请求

    import anthropic
    
    client = anthropic.Anthropic(
        # defaults to os.environ.get("ANTHROPIC_API_KEY")
        api_key="my_api_key",
    )
    message = client.messages.create(
        model="claude-sonnet-4-5",
        max_tokens=1000,
        temperature=0,
        system="您的任务是生成包含指定类型数据的CSV电子表格。电子表格应该组织良好,具有清晰的列标题和每列适当的数据类型。确保数据真实、多样化且格式一致。包含至少10行数据,不计算标题行。",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "创建一个包含图书馆书籍信息的电子表格。包含以下列:图书ID、标题、作者、类型、出版年份和可用副本数。确保数据涵盖各种类型和出版年份,并且可用副本数在不同书籍之间有所变化。"
                    }
                ]
            }
        ]
    )
    print(message.content)
    
    • API请求