Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
moyewuji
Python-100-Days
提交
d8046d42
P
Python-100-Days
项目概览
moyewuji
/
Python-100-Days
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Python-100-Days
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d8046d42
编写于
7月 23, 2018
作者:
骆昊的技术专栏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除了不必要的文件
上级
69b3005a
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
1 addition
and
67 deletion
+1
-67
Day21-30/code/demo01/qq_link.html
Day21-30/code/demo01/qq_link.html
+1
-1
面试指南.md
面试指南.md
+0
-66
未找到文件。
Day21-30/code/demo01/qq_link.html
浏览文件 @
d8046d42
...
@@ -5,6 +5,6 @@
...
@@ -5,6 +5,6 @@
<title></title>
<title></title>
</head>
</head>
<body>
<body>
<a
target=
"_blank"
href=
"http://wpa.qq.com/msgrd?v=3&uin=957658&site=qq&menu=yes"
><img
border=
"0"
src=
"http://wpa.qq.com/pa?p=2:957658:5
3"
alt=
"点我聊一聊"
title=
"点我聊一聊
"
/></a>
<a
target=
"_blank"
href=
"http://wpa.qq.com/msgrd?v=3&uin=957658&site=qq&menu=yes"
><img
border=
"0"
src=
"http://wpa.qq.com/pa?p=2:957658:5
1"
alt=
"聊我吧"
title=
"聊我吧
"
/></a>
</body>
</body>
</html>
</html>
\ No newline at end of file
面试指南.md
已删除
100644 → 0
浏览文件 @
69b3005a
## 面试指南
### 基础知识
1.
下面的代码会输出什么。
```
Python
list1 = [1, 2, 3, 4]
list2 = [i for i in list1 if i > 2]
print(list2)
list3 = [i for i in list1 if i % 2]
print(list3)
dict1 = {x: x ** 2 for x in (2, 4, 6)}
print(dict1)
dict2 = {x: f'item{x ** 2}' for x in (2, 4, 6)}
print(dict2)
set1 = {x for x in 'hello world' if x not in 'abcdefg'}
print(len(set1))
```
2.
下面的代码会输出什么。
```Python
num = 100
def foo():
num = 200
def bar():
print(num)
bar()
foo()
bar()
```
3.
如何修改下面的Python代码,才能够输出“foo in father”?
```
Python
class Father(object):
def foo(self):
print('foo in father.')
class Son(object):
def foo(self):
print('foo in son.')
obj = Son()
obj.foo()
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录