Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Python-100-Days
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangkq
Python-100-Days
Commits
d8046d42
Commit
d8046d42
authored
Jul 22, 2018
by
jackfrued
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除了不必要的文件
parent
69b3005a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
67 deletions
+1
-67
qq_link.html
Day21-30/code/demo01/qq_link.html
+1
-1
面试指南.md
面试指南.md
+0
-66
No files found.
Day21-30/code/demo01/qq_link.html
View file @
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
deleted
100644 → 0
View file @
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()
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment