一、deepseek应用场景概述
deepseek技术已通过前期系统讲解形成完备的提示词使用体系,现通过具体案例展示其在生活、职场、学习等领域的实际应用场景。
二、学科问题解决场景
在各个学科领域都可以应用,特别是在数学和物理领域
- 适用范围:覆盖小学至研究生阶段的各类理工科问题
案例一
圆周率的第423位是多少
我们来看deepseek的回答
- 我们可以看到deepseek思考挺长时间,最终给出了答案
- 当前问题属于非逻辑推理的问题(更偏向于查询),我们可以不使用深度思考,直接询问,他会直接给出答案
案例二
农场里有一个笼子关着鸡和兔子。已知笼子里共有 35个头, 94只脚。请问笼子里有多少只鸡?多少只兔子?
我们来看看deepseek的回答
详细给出了过程和结果
案例三
这是一道数学一的考研真题
我们截图把它发给deepseek看他如何解答
我们可以看到他已经详细的把整个解题过程写了出来
三、程序员应用场景
deepseek在代码能力方面不容小觑,他可以帮助我们干下面的事情
功能
- 日常代码编写
- 代码优化与调试
- 源码分析与注释添加
实例
用日常代码编写作为例子
我们让deepseek做如下需求:帮我写一个html页面,他是一个代办todo的功能,可以增加代办、删除代办、编辑代办、可以为代办添加备注、完成待办、查看代办的完成时间,UI好看一点
我们来看看deepseek的回答
- deepseek给的代码如下
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>智能待办清单</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: #f0f2f5;
padding: 2rem;
color: #2c3e50;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #3498db;
margin-bottom: 1.5rem;
}
.input-group {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}
input[type="text"] {
flex: 1;
padding: 0.8rem;
border: 2px solid #3498db;
border-radius: 8px;
font-size: 1rem;
}
button {
padding: 0.8rem 1.5rem;
background: #3498db;
border: none;
color: white;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover {
background: #2980b9;
}
.todo-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.todo-item {
background: #f8f9fa;
padding: 1rem;
border-radius: 8px;
display: flex;
flex-direction: column;
gap: 0.5rem;
border-left: 4px solid #3498db;
transition: transform 0.2s ease;
}
.todo-item:hover {
transform: translateX(5px);
}
.todo-item.completed {
border-color: #27ae60;
background: #e8f6ef;
opacity: 0.8;
}
.todo-header {
display: flex;
align-items: center;
gap: 1rem;
}
.todo-content {
flex: 1;
font-size: 1.1rem;
}
.todo-actions {
display: flex;
gap: 0.5rem;
}
.todo-notes {
color: #7f8c8d;
font-size: 0.9rem;
margin-left: 2rem;
}
.todo-time {
font-size: 0.8rem;
color: #95a5a6;
}
.edit-input {
flex: 1;
padding: 0.5rem;
border: 2px solid #3498db;
border-radius: 4px;
}
.checkbox {
width: 20px;
height: 20px;
accent-color: #27ae60;
}
</style>
</head>
<body>
<div class="container">
<h1>智能待办清单 📝</h1>
<div class="input-group">
<input type="text" id="todoInput" placeholder="添加新待办事项...">
<input type="text" id="noteInput" placeholder="添加备注(可选)">
<button onclick="addTodo()">添加</button>
</div>
<div class="todo-list" id="todoList"></div>
</div>
<script>
let todos = [];
function addTodo() {
const input = document.getElementById('todoInput');
const noteInput = document.getElementById('noteInput');
if (input.value.trim()) {
const todo = {
id: Date.now(),
content: input.value,
note: noteInput.value,
completed: false,
created: new Date(),
completedAt: null
};
todos.push(todo);
renderTodos();
input.value = '';
noteInput.value = '';
}
}
function deleteTodo(id) {
todos = todos.filter(todo => todo.id !== id);
renderTodos();
}
function toggleComplete(id) {
todos = todos.map(todo => {
if (todo.id === id) {
todo.completed = !todo.completed;
todo.completedAt = todo.completed ? new Date() : null;
}
return todo;
});
renderTodos();
}
function editTodo(id) {
const todo = todos.find(t => t.id === id);
const item = document.getElementById(id);
const content = item.querySelector('.todo-content');
const editInput = document.createElement('input');
editInput.className = 'edit-input';
editInput.value = todo.content;
const saveButton = document.createElement('button');
saveButton.textContent = '保存';
saveButton.onclick = () => {
todo.content = editInput.value;
renderTodos();
};
content.replaceWith(editInput);
item.querySelector('.todo-actions').prepend(saveButton);
}
function renderTodos() {
const list = document.getElementById('todoList');
list.innerHTML = '';
todos.forEach(todo => {
const todoElement = document.createElement('div');
todoElement.className = `todo-item ${todo.completed ? 'completed' : ''}`;
todoElement.id = todo.id;
todoElement.innerHTML = `
<div class="todo-header">
<input type="checkbox" class="checkbox" ${todo.completed ? 'checked' : ''}
onchange="toggleComplete(${todo.id})">
<div class="todo-content">${todo.content}</div>
<div class="todo-actions">
<button onclick="editTodo(${todo.id})">✏️</button>
<button onclick="deleteTodo(${todo.id})">🗑️</button>
</div>
</div>
${todo.note ? `<div class="todo-notes">📌 ${todo.note}</div>` : ''}
<div class="todo-time">
创建时间: ${formatDate(todo.created)}
${todo.completed ? `| 完成时间: ${formatDate(todo.completedAt)}` : ''}
</div>
`;
list.appendChild(todoElement);
});
}
function formatDate(date) {
return date.toLocaleString('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit'
});
}
// 回车添加待办
document.getElementById('todoInput').addEventListener('keypress', (e) => {
if (e.key === 'Enter') addTodo();
});
</script>
</body>
</html>
使用元宝可以直接点击运行按钮
如果没有运行按钮,我们做如下操作
- 复制源码至新建.html文件
- 先新建txt文件
- 然后把后缀名修改为html
- 浏览器直接运行
运行效果如下
我们可以发现deepseek直接给我们一个我已使用的webapp
四、技术特点总结
- 复杂问题处理能力:支持多层级问题拆解与逐步解决
- 结果可靠性:经实际验证具有较高准确率
- 应用潜力:在代码生成等领域可能对传统工作模式产生变革性影响