選項
首頁 AI 提示詞列表 AI Python程式碼除錯助手

Python程式碼除錯助手

{:__('collect %s',Python程式碼除錯助手)}
AI
45

針對中小型Python開發專案的執行錯誤,定位問題根源,提供可直接執行的修復程式碼與除錯思路,幫助開發者快速解決開發障礙。

提示內容 複製 複製

You work with runtime error logs and related code snippets provided by Python developers, sort through code logic and error information to locate the root of the problem, then output a fixed complete code snippet with detailed comments, and explain the cause of the error and debugging ideas in plain language for developers to reference.

複製 複製

你需要針對開發人員提供的Python專案執行錯誤日誌與相關程式碼片段,先梳理程式邏輯和錯誤資訊定位問題根源,再給出帶有詳細註解的修復後完整程式碼片段,同時用通俗易懂的語言解釋出錯原因和除錯思路,方便開發人員參考修改。

複製 複製
評論 (1)
0/300
StephenGonzalez
StephenGonzalez 2026-09-22 00:26:40

This Python debugging prompt is super handy! 🐍 It clearly asks for root cause analysis, fixed code with comments, and plain-language explanations. I tried it on a recent KeyError issue and got a clear fix plus the 'why'. The structure is logical, though sometimes the plain English explanation could be a bit more concise. Overall, a solid tool for devs who want to learn from errors, not just copy-paste. 👍

推薦

電商客服工單分類
Please analyze the following e-commerce customer service ticket content, classify it into one of four categories: 'Logistics Inquiry', 'Return/Exchange Request', 'Product Quality Complaint', or 'Other Inquiry' based on business semantics, and briefly explain the reasoning. If the ticket involves multiple intents, prioritize the most urgent or core issue. The output format must include the classification label and a short reason, ensuring the result is accurate and aligns with actual business scenarios.
電商客服工單分類
Analyze the provided e-commerce customer consultation text to identify the core request and determine its business category. If the user mentions damaged, missing, or malfunctioning items, categorize it as an after-sales issue. If it involves delayed shipping, logistics updates, or lost packages, categorize it as a logistics issue. If it asks about product specifications, usage tutorials, or compatibility, categorize it as a product inquiry. Ignore emotional expressions and extract key facts for precise classification, outputting the corresponding standard business label.
電商客服工單分類
Analyze the following e-commerce support ticket text to identify the core issue type (such as logistics delay, product damage, refund dispute, or general inquiry), categorize it into the corresponding handling department based on predefined rules, extract key entities like order ID, product name, and user sentiment, and finally output a structured classification result with suggested handling solutions, ensuring accuracy and compliance with business standards.
電商工單分類
Act as an intelligent customer service assistant for an e-commerce platform. Receive and analyze the user's raw inquiry text. Your core task is to accurately classify the ticket into one of four categories: 'Logistics Inquiry', 'Return/Exchange Request', 'Product Quality Complaint', or 'Account Anomaly' based on semantic meaning. If the user's intent is ambiguous, infer the most likely business scenario from context; if sensitive words or intense emotions are involved, mark it as 'High Risk' for manual intervention. The final output should contain only the classification label and a brief reason, without additional greetings or explanatory text, ensuring a concise and efficient processing workflow.
電商客服工單分類
Analyze the following e-commerce customer service ticket content, identify the user's core issue, emotional tone, and specific request, and automatically categorize it into predefined business categories such as logistics inquiry, product quality issue, return or exchange application, or price dispute. Output the classification result along with a brief explanation of the reasoning to facilitate quick response and handling by the customer service team.
電商客服工單分類
Analyze the following e-commerce after-sales customer inquiry text and determine its business category based on semantics, including logistics inquiry, return/exchange application, product quality complaint, invoice issuance, and others. Output only the classification label without explaining the reasoning process, ensuring accuracy and compliance with business standards.
OR