Gemini Cheat Sheet - 快速参考指南,收录常用语法、命令与实践。
| Model | Features | Best For |
|---|---|---|
| Gemini 2.0 Flash | Fast, multimodal | Daily tasks, quick queries |
| Gemini 1.5 Pro | Long context (1M tokens) | Document analysis, coding |
| Gemini Ultra | Most capable | Complex reasoning |
[Context] [Task] [Format] [Constraints]
You are a marketing expert.
Write 5 Instagram caption ideas for a coffee shop.
Use emojis and include hashtags.
Keep each under 150 characters.
Act as a [role] with expertise in [domain].
Your task is to [specific task].
Respond in the following format:
- Summary: (2-3 sentences)
- Key Points: (bullet list)
- Recommendation: (1 paragraph)
| Extension | Function |
|---|---|
| Google Flights | Search flights |
| Google Hotels | Find accommodations |
| Google Maps | Location info, directions |
| YouTube | Video summaries |
| Google Workspace | Docs, Gmail, Drive |
Flights Search
@Google Flights Find flights from Sydney to Tokyo
next month, round trip, economy class
Hotel Search
@Google Hotels Find hotels in Melbourne CBD
for 2 nights, under $200/night, with pool
YouTube Summary
@YouTube Summarize this video:
[paste YouTube URL]
Gmail Search
@Gmail Find emails from John about the project
proposal from last week
Docs Summary
@Google Docs Summarize the main points from
my document "Q4 Marketing Plan"
Drive Search
@Google Drive Find spreadsheets related to
budget planning from this year
Direct question without examples
What are the main differences between
REST and GraphQL APIs?
Provide examples for pattern learning
Convert to formal language:
Casual: "Hey, can you help me out?"
Formal: "Would you be able to assist me?"
Casual: "That's awesome!"
Formal: "That is excellent."
Casual: "gonna grab some food"
Formal:
Step-by-step reasoning
Solve this problem step by step:
A store has 150 items. They sell 30% on Monday,
then receive 50 new items on Tuesday.
How many items do they have now?
Think through each step before answering.
Multiple reasoning paths
Analyze this business decision using three
different frameworks:
1. SWOT Analysis
2. Cost-Benefit Analysis
3. Risk Assessment
Then provide a unified recommendation.
Blog Post
Write a blog post about [topic]:
- Target audience: [audience]
- Tone: [casual/professional/technical]
- Length: approximately [X] words
- Include: introduction, main points, conclusion
- Add a compelling headline
Social Media
Create [number] social media posts about [topic]:
- Platform: [Instagram/Twitter/LinkedIn]
- Include relevant hashtags
- Add call-to-action
- Keep within character limits
Professional Email
Write a professional email:
- Purpose: [meeting request/follow-up/inquiry]
- Recipient: [role/relationship]
- Key points to cover: [list]
- Tone: [formal/friendly professional]
- Include subject line
Improve this text:
- Fix grammar and spelling
- Improve clarity and flow
- Maintain the original meaning
- Make it more engaging
Original: [paste text]
Write a [language] function that:
- Input: [description]
- Output: [description]
- Requirements: [list requirements]
- Include error handling
- Add comments explaining the logic
Review this code for:
1. Bugs and errors
2. Security vulnerabilities
3. Performance issues
4. Best practices
5. Readability improvements
```[language]
[paste code]
Debug this code:
```[language]
[paste code]
Error message: [paste error] Expected behavior: [describe] Actual behavior: [describe]
Explain this code in simple terms:
- What does it do?
- How does it work step by step?
- What are the key concepts used?
```[language]
[paste code]
Analyze this data:
[paste data or describe dataset]
Provide:
1. Summary statistics
2. Key patterns and trends
3. Notable outliers
4. Actionable insights
5. Visualization suggestions
Analyze this document and provide:
- Executive summary (3-5 sentences)
- Key findings
- Important dates/numbers
- Action items
- Questions that need clarification
[paste document or upload]
Compare [Option A] vs [Option B]:
- Key similarities
- Key differences
- Pros and cons of each
- Recommendation based on [criteria]
Analyze this image:
- Describe what you see in detail
- Identify any text
- Note colors, composition, style
- Suggest potential uses
Generate an image of:
[detailed description]
Style: [photorealistic/illustration/cartoon]
Mood: [bright/dark/professional]
Colors: [color palette]
Composition: [layout description]
Based on this image, suggest:
- 5 social media caption ideas
- Related content themes
- Color palettes to match
- Similar visual styles to explore
Help me prepare for a meeting about [topic]:
- Key talking points
- Potential questions to expect
- Data points to reference
- Agenda suggestion
- Follow-up action items template
Research [topic] and provide:
- Overview (2-3 paragraphs)
- Key facts and statistics
- Recent developments
- Different perspectives
- Reliable sources to explore further
Teach me about [topic]:
- Explain core concepts simply
- Use real-world analogies
- Provide practical examples
- Common misconceptions
- Practice questions to test understanding
Create a project plan for [project]:
- Project phases and milestones
- Task breakdown
- Time estimates
- Resource requirements
- Risk factors and mitigation
import google.generativeai as genai
genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel('gemini-1.5-pro')
response = model.generate_content("Hello!")
print(response.text)
model = genai.GenerativeModel(
'gemini-1.5-pro',
system_instruction="You are a helpful coding assistant."
)
response = model.generate_content("Review my code")
chat = model.start_chat(history=[])
response = chat.send_message("Hi, I need help with Python")
print(response.text)
response = chat.send_message("How do I read a file?")
print(response.text)
import PIL.Image
image = PIL.Image.open('image.jpg')
response = model.generate_content([
"Describe this image in detail",
image
])
print(response.text)
response = model.generate_content(
"Write a story",
stream=True
)
for chunk in response:
print(chunk.text, end="")
Process up to 1 million tokens
Analyze this entire codebase/document:
[paste large content]
Identify:
- Overall structure
- Key components
- Dependencies
- Potential issues
Combine text, images, and documents
Look at this [image/document] and:
1. Summarize the content
2. Extract key information
3. Answer specific questions about it
4. Suggest improvements
Run Python code in responses
Calculate and show the result:
- Process this data: [data]
- Create a visualization
- Export the results
| Shortcut | Action |
|---|---|
Enter | Send message |
Shift + Enter | New line |
Ctrl + / | Show shortcuts |
Ctrl + Shift + C | Copy response |
1. Start with clear objectives
2. Provide relevant context
3. Specify desired format
4. Include constraints
5. Ask follow-up questions
6. Request explanations when needed
地址
Level 10b, 144 Edward Street, Brisbane CBD(Headquarter)Level 2, 171 La Trobe St, Melbourne VIC 3000四川省成都市武侯区桂溪街道天府大道中段500号D5东方希望天祥广场B座45A13号Business Hub, 155 Waymouth St, Adelaide SA 5000Disclaimer
JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.
匠人学院网站上的所有内容,包括课程材料、徽标和匠人学院网站上提供的信息,均受澳大利亚政府知识产权法的保护。严禁未经授权使用、销售、分发、复制或修改。违规行为可能会导致法律诉讼。通过访问我们的网站,您同意尊重我们的知识产权。 JR Academy Pty Ltd 保留所有权利,包括专利、商标和版权。任何侵权行为都将受到法律追究。查看用户协议
© 2017-2025 JR Academy Pty Ltd. All rights reserved.
ABN 26621887572