Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
python-demo
提交
a6ad594e
P
python-demo
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
python-demo
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
python-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a6ad594e
编写于
7月 02, 2023
作者:
Kwan的解忧杂货铺@新空间代码工作室
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:题型
上级
9f8ee0b8
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
25 addition
and
0 deletion
+25
-0
14_刷题/01-数组/day01/problem_solving_01.py
14_刷题/01-数组/day01/problem_solving_01.py
+0
-0
14_刷题/01-数组/day01/problem_solving_02.py
14_刷题/01-数组/day01/problem_solving_02.py
+0
-0
14_刷题/01-数组/day01/problem_solving_03.py
14_刷题/01-数组/day01/problem_solving_03.py
+0
-0
14_刷题/01-数组/day01/problem_solving_04.py
14_刷题/01-数组/day01/problem_solving_04.py
+0
-0
14_刷题/01-数组/day01/problem_solving_05.py
14_刷题/01-数组/day01/problem_solving_05.py
+0
-0
14_刷题/01-数组/day01/problem_solving_06.py
14_刷题/01-数组/day01/problem_solving_06.py
+0
-0
14_刷题/01-数组/day01/problem_solving_07.py
14_刷题/01-数组/day01/problem_solving_07.py
+0
-0
14_刷题/01-数组/day01/problem_solving_08.py
14_刷题/01-数组/day01/problem_solving_08.py
+0
-0
14_刷题/01-数组/day01/problem_solving_09.py
14_刷题/01-数组/day01/problem_solving_09.py
+0
-0
14_刷题/01-数组/day01/problem_solving_10.py
14_刷题/01-数组/day01/problem_solving_10.py
+0
-0
14_刷题/01-数组/day02/problem_solving_11.py
14_刷题/01-数组/day02/problem_solving_11.py
+0
-0
14_刷题/01-数组/day02/problem_solving_12.py
14_刷题/01-数组/day02/problem_solving_12.py
+0
-0
14_刷题/01-数组/day02/problem_solving_13.py
14_刷题/01-数组/day02/problem_solving_13.py
+0
-0
14_刷题/01-数组/day02/problem_solving_14.py
14_刷题/01-数组/day02/problem_solving_14.py
+0
-0
14_刷题/01-数组/day02/problem_solving_15.py
14_刷题/01-数组/day02/problem_solving_15.py
+0
-0
14_刷题/01-数组/day02/problem_solving_16.py
14_刷题/01-数组/day02/problem_solving_16.py
+0
-0
14_刷题/01-数组/day02/problem_solving_17.py
14_刷题/01-数组/day02/problem_solving_17.py
+0
-0
14_刷题/01-数组/day02/problem_solving_18_01.py
14_刷题/01-数组/day02/problem_solving_18_01.py
+0
-0
14_刷题/01-数组/day02/problem_solving_18_02.py
14_刷题/01-数组/day02/problem_solving_18_02.py
+0
-0
14_刷题/01-数组/day02/problem_solving_19_01.py
14_刷题/01-数组/day02/problem_solving_19_01.py
+0
-0
14_刷题/01-数组/day02/problem_solving_19_02.py
14_刷题/01-数组/day02/problem_solving_19_02.py
+0
-0
14_刷题/01-数组/day02/problem_solving_19_03.py
14_刷题/01-数组/day02/problem_solving_19_03.py
+0
-0
14_刷题/01-数组/day02/problem_solving_20.py
14_刷题/01-数组/day02/problem_solving_20.py
+0
-0
14_刷题/01-数组/day03/problem_solving_21.py
14_刷题/01-数组/day03/problem_solving_21.py
+0
-0
14_刷题/01-数组/day03/problem_solving_22.py
14_刷题/01-数组/day03/problem_solving_22.py
+0
-0
14_刷题/01-数组/day03/problem_solving_23.py
14_刷题/01-数组/day03/problem_solving_23.py
+0
-0
14_刷题/01-数组/day03/problem_solving_24.py
14_刷题/01-数组/day03/problem_solving_24.py
+0
-0
14_刷题/01-数组/day03/problem_solving_25.py
14_刷题/01-数组/day03/problem_solving_25.py
+0
-0
14_刷题/01-数组/day03/problem_solving_26.py
14_刷题/01-数组/day03/problem_solving_26.py
+0
-0
14_刷题/01-数组/day03/problem_solving_27_01.py
14_刷题/01-数组/day03/problem_solving_27_01.py
+0
-0
14_刷题/01-数组/day03/problem_solving_27_02.py
14_刷题/01-数组/day03/problem_solving_27_02.py
+0
-0
14_刷题/01-数组/day03/problem_solving_28.py
14_刷题/01-数组/day03/problem_solving_28.py
+25
-0
未找到文件。
14_刷题/day01/problem_solving_01.py
→
14_刷题/
01-数组/
day01/problem_solving_01.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_02.py
→
14_刷题/
01-数组/
day01/problem_solving_02.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_03.py
→
14_刷题/
01-数组/
day01/problem_solving_03.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_04.py
→
14_刷题/
01-数组/
day01/problem_solving_04.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_05.py
→
14_刷题/
01-数组/
day01/problem_solving_05.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_06.py
→
14_刷题/
01-数组/
day01/problem_solving_06.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_07.py
→
14_刷题/
01-数组/
day01/problem_solving_07.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_08.py
→
14_刷题/
01-数组/
day01/problem_solving_08.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_09.py
→
14_刷题/
01-数组/
day01/problem_solving_09.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day01/problem_solving_10.py
→
14_刷题/
01-数组/
day01/problem_solving_10.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_11.py
→
14_刷题/
01-数组/
day02/problem_solving_11.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_12.py
→
14_刷题/
01-数组/
day02/problem_solving_12.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_13.py
→
14_刷题/
01-数组/
day02/problem_solving_13.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_14.py
→
14_刷题/
01-数组/
day02/problem_solving_14.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_15.py
→
14_刷题/
01-数组/
day02/problem_solving_15.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_16.py
→
14_刷题/
01-数组/
day02/problem_solving_16.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_17.py
→
14_刷题/
01-数组/
day02/problem_solving_17.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_18_01.py
→
14_刷题/
01-数组/
day02/problem_solving_18_01.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_18_02.py
→
14_刷题/
01-数组/
day02/problem_solving_18_02.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_19_01.py
→
14_刷题/
01-数组/
day02/problem_solving_19_01.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_19_02.py
→
14_刷题/
01-数组/
day02/problem_solving_19_02.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_19_03.py
→
14_刷题/
01-数组/
day02/problem_solving_19_03.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day02/problem_solving_20.py
→
14_刷题/
01-数组/
day02/problem_solving_20.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_21.py
→
14_刷题/
01-数组/
day03/problem_solving_21.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_22.py
→
14_刷题/
01-数组/
day03/problem_solving_22.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_23.py
→
14_刷题/
01-数组/
day03/problem_solving_23.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_24.py
→
14_刷题/
01-数组/
day03/problem_solving_24.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_25.py
→
14_刷题/
01-数组/
day03/problem_solving_25.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_26.py
→
14_刷题/
01-数组/
day03/problem_solving_26.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_27_01.py
→
14_刷题/
01-数组/
day03/problem_solving_27_01.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/day03/problem_solving_27_02.py
→
14_刷题/
01-数组/
day03/problem_solving_27_02.py
浏览文件 @
a6ad594e
文件已移动
14_刷题/01-数组/day03/problem_solving_28.py
0 → 100644
浏览文件 @
a6ad594e
"""
键盘行
"""
from
typing
import
List
class
Solution
:
def
findWords
(
self
,
words
:
List
[
str
])
->
List
[
str
]:
# 定义行字典,同一行的结果相同
keyboard
=
{
'q'
:
1
,
'w'
:
1
,
'e'
:
1
,
'r'
:
1
,
't'
:
1
,
'y'
:
1
,
'u'
:
1
,
'i'
:
1
,
'o'
:
1
,
'p'
:
1
,
'a'
:
2
,
's'
:
2
,
'd'
:
2
,
'f'
:
2
,
'g'
:
2
,
'h'
:
2
,
'j'
:
2
,
'k'
:
2
,
'l'
:
2
,
'z'
:
3
,
'x'
:
3
,
'c'
:
3
,
'v'
:
3
,
'b'
:
3
,
'n'
:
3
,
'm'
:
3
}
res
=
[]
for
word
in
words
:
# all表示每一项都满足条件
if
all
(
keyboard
[
word
[
0
].
lower
()]
==
keyboard
[
char
.
lower
()]
for
char
in
word
):
res
.
append
(
word
)
return
res
if
__name__
==
'__main__'
:
result
=
Solution
().
findWords
([
'Hello'
,
'Alaska'
,
'Dad'
,
'Peace'
])
print
(
result
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录