mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 18:31:41 +08:00
update
This commit is contained in:
38
leetcode-cn/problem (Chinese)/数据选取 [select-data].html
Normal file
38
leetcode-cn/problem (Chinese)/数据选取 [select-data].html
Normal file
@@ -0,0 +1,38 @@
|
||||
<pre>
|
||||
DataFrame students
|
||||
+-------------+--------+
|
||||
| Column Name | Type |
|
||||
+-------------+--------+
|
||||
| student_id | int |
|
||||
| name | object |
|
||||
| age | int |
|
||||
+-------------+--------+
|
||||
|
||||
</pre>
|
||||
|
||||
<p>编写一个解决方案,选择 <code>student_id = 101</code> 的学生的 name 和 age 并输出。</p>
|
||||
|
||||
<p>返回结果格式如下示例所示。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<b>输入:</b>
|
||||
+------------+---------+-----+
|
||||
| student_id | name | age |
|
||||
+------------+---------+-----+
|
||||
| 101 | Ulysses | 13 |
|
||||
| 53 | William | 10 |
|
||||
| 128 | Henry | 6 |
|
||||
| 3 | Henry | 11 |
|
||||
+------------+---------+-----+
|
||||
<b>输出:</b>
|
||||
+---------+-----+
|
||||
| name | age |
|
||||
+---------+-----+
|
||||
| Ulysses | 13 |
|
||||
+---------+-----+
|
||||
<strong>解释:
|
||||
</strong>学生 Ulysses 的 student_id = 101,所以我们输出了他的 name 和 age。</pre>
|
Reference in New Issue
Block a user