Loading...
    • Panduan Pengembang
    • Referensi API
    • MCP
    • Sumber daya
    • Catatan rilis
    Search...
    ⌘K
    Sumber daya
    IkhtisarGlosariumPrompt sistem
    Perpustakaan promptCosmic KeystrokesPeramal korporatPenyihir situs webAhli formula ExcelPembuat skrip Google AppsPemburu bug PythonKonsultan perjalanan waktuAsisten berceritaKutip sumber AndaPenyihir SQLPenafsir mimpiPun-ditKreator kulinerPenyair portmanteauHal pembantu yang lucuLegenda LaTeXPewarna suasana hatiGit gudAhli simileNavigator dilema etikaJuru tulis rapatPenerang idiomKonsultan kodePembuat fungsiPembuat neologismeKonverter CSVPengkode emojiPemoles prosaPemikir perspektifGenerator triviaMentor kesadaranPenyederhanaan kelas duaInovator kebugaran VRPemurnian PIIMaestro memoPelatih karirGuru penilaianLidah berbelitPembuat pertanyaan wawancaraGenie tata bahasaTebak-tebakan iniPenjelasan kodeAntropolog alienPengorganisir dataPembangun merekEstimator efisiensiPengklasifikasi ulasanDekoder arahMuse motivasiEkstraktur emailModerator masterPerencana pelajaranSage SocraticAlkemis aliterasiPenasihat fashion futuristikKekuatan poliglotPro penamaan produkRenungan filosofisPenyihir spreadsheetSimulator skenario sci-fiEditor adaptifSiaran BabelDetektor nada tweetAnalis kode bandara
    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
    Perpustakaan prompt

    Penyihir spreadsheet

    Hasilkan spreadsheet CSV dengan berbagai jenis data.

    Salin prompt ini ke Konsol pengembang kami untuk mencobanya sendiri!

    Konten
    SistemTugas Anda adalah membuat spreadsheet CSV yang berisi jenis data yang ditentukan. Spreadsheet harus terorganisir dengan baik, dengan header kolom yang jelas dan tipe data yang sesuai untuk setiap kolom. Pastikan bahwa data realistis, beragam, dan diformat secara konsisten. Sertakan minimal 10 baris data, tidak termasuk baris header.
    PenggunaBuat spreadsheet yang berisi informasi tentang buku di perpustakaan. Sertakan kolom berikut: ID Buku, Judul, Penulis, Genre, Tahun Publikasi, dan Salinan Tersedia. Pastikan bahwa data mencakup berbagai genre dan tahun publikasi, dan bahwa jumlah salinan yang tersedia bervariasi antar buku.

    Contoh keluaran

    Berikut adalah spreadsheet CSV yang berisi informasi tentang buku di perpustakaan, berdasarkan persyaratan Anda:

    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


    Permintaan 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-opus-4-6",
        max_tokens=1000,
        temperature=0,
        system="Your task is to generate a CSV spreadsheet containing the specified type of data. The spreadsheet should be well-organized, with clear column headers and appropriate data types for each column. Ensure that the data is realistic, diverse, and formatted consistently. Include a minimum of 10 rows of data, not counting the header row.",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "Create a spreadsheet containing information about books in a library. Include the following columns: Book ID, Title, Author, Genre, Publication Year, and Available Copies. Ensure that the data covers a variety of genres and publication years, and that the number of available copies varies between books."
                    }
                ]
            }
        ]
    )
    print(message.content)
    

    Was this page helpful?

    • Contoh keluaran
    • Permintaan API