-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
355 lines (295 loc) · 39.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<html lang="zh-CN" data-theme="light"><head><script type="text/javascript" src="/js/crash_cheat.js"></script><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>Afei-BUAAer - 开心一点!!</title><meta name="author" content="澄澈"><meta name="copyright" content="澄澈"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="Afei-BUAAer">
<meta property="og:url" content="http://afeii1.github.io/index.html">
<meta property="og:site_name" content="Afei-BUAAer">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://th.bing.com/th/id/OIP.9-OIc7zzbQR8lY-v-LIUQwHaHa?rs=1&pid=ImgDetMain">
<meta property="article:author" content="澄澈">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://th.bing.com/th/id/OIP.9-OIc7zzbQR8lY-v-LIUQwHaHa?rs=1&pid=ImgDetMain"><link rel="shortcut icon" href="/img/9.webg"><link rel="canonical" href="http://afeii1.github.io/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"><link rel="preconnect" href="//busuanzi.ibruce.info"><link rel="stylesheet" href="/css/index.css?v=4.13.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/snackbar.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/',
algolia: {"appId":"Z7A3XW4R2I","apiKey":"12db1ad54372045549ef465881c17e743","indexName":"my-hexo-blog","hits":{"per_page":"6he"},"languages":{"input_placeholder":"搜索文章","hits_empty":"找不到您查询的内容:${query}","hits_stats":"找到 ${hits} 条结果,用时 ${time} 毫秒"}},
localSearch: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"找不到您查询的内容:${query}","hits_stats":"共找到 ${hits} 篇文章"}},
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '',
dateSuffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: {"limitCount":50,"languages":{"author":"作者: 澄澈","link":"链接: ","source":"来源: Afei-BUAAer","info":"著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。"}},
lightbox: 'mediumZoom',
Snackbar: {"chs_to_cht":"你已切换为繁体中文","cht_to_chs":"你已切换为简体中文","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"bottom-left"},
infinitegrid: {
js: 'https://cdn.jsdelivr.net/npm/@egjs/[email protected]/dist/infinitegrid.min.js',
buttonText: '加载更多'
},
isPhotoFigcaption: true,
islazyload: false,
isAnchor: false,
percent: {
toc: true,
rightside: false,
},
autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: 'Afei-BUAAer',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2024-09-22 20:56:14'
}</script><script>(win=>{
win.saveToLocal = {
set: (key, value, ttl) => {
if (ttl === 0) return
const now = Date.now()
const expiry = now + ttl * 86400000
const item = {
value,
expiry
}
localStorage.setItem(key, JSON.stringify(item))
},
get: key => {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = Date.now()
if (now > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
Object.keys(attr).forEach(key => {
script.setAttribute(key, attr[key])
})
document.head.appendChild(script)
})
win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = url
if (id) link.id = id
link.onerror = reject
link.onload = link.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
link.onload = link.onreadystatechange = null
resolve()
}
document.head.appendChild(link)
})
win.activateDarkMode = () => {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
win.activateLightMode = () => {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
if (t === 'dark') activateDarkMode()
else if (t === 'light') activateLightMode()
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
if (asideStatus === 'hide') {
document.documentElement.classList.add('hide-aside')
} else {
document.documentElement.classList.remove('hide-aside')
}
}
const detectApple = () => {
if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
})(window)</script><link rel="stylesheet" href="/css/modify.css"><link rel="stylesheet" href="/css/background.css"></head><body><div id="myscoll"></div><meta name="generator" content="Hexo 7.3.0"><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://th.bing.com/th/id/OIP.9-OIc7zzbQR8lY-v-LIUQwHaHa?rs=1&pid=ImgDetMain" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">8</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">4</div></a></div><hr class="custom-hr"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> List</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> Movie</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/img/777.png')"><nav id="nav"><span id="blog-info"><a href="/" title="Afei-BUAAer"><span class="site-name">Afei-BUAAer</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> List</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> Movie</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">Afei-BUAAer</h1><div id="site-subtitle"><span id="subtitle"></span></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/2024/08/26/MySQL%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95/" title="MySQL基本语法"><img class="post-bg" src="/img/4.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="MySQL基本语法"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/26/MySQL%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95/" title="MySQL基本语法">MySQL基本语法</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-26T07:49:30.843Z" title="发表于 2024-08-26 15:49:30">2024-08-26</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-09-03T00:58:31.747Z" title="更新于 2024-09-03 08:58:31">2024-09-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/MySQL/">MySQL</a></span></div><div class="content">前言
MySQL的注释: 单行注释: --或者# 多行注释: /**/
备注: [ ]表示可选择,可有可没有
分类
全称
说明
DDL
Data Definition Language
数据定义语言,用来定义数据库对象
DML
Data Manipulation Language
数据操作语言,用来对数据库表中的数据进行增删改
DQL
Data Query Language
数据查询语言,用于查询数据库中表的信息
DCL
Data Control Language
数据控制语言,用于创建数据库用户、控制数据库的访问权限
DDL
DDL:数据定义语言,用于对数据库中的数据对象的组成和结构进行定义。
操作数据库查询数据库#1. 查询M有SQL中所有的数据库SHOW DATABASES;#2. 查询当前正在使用的数据库SELECGT DATABASE();
创建数据库#1. 无需判断的创建(如果出现同名的数据库,则会报错)CREATE DATABASE EXAMPLE;#2. 判断并创建(如果不存在,则创建;反之,不创建)CREATE DAT ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/08/03/Summer_Python_4_under/" title="BUAA-SUMMER-PYTHON 第四次课下作业"><img class="post-bg" src="/img/3.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第四次课下作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/03/Summer_Python_4_under/" title="BUAA-SUMMER-PYTHON 第四次课下作业">BUAA-SUMMER-PYTHON 第四次课下作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-03T13:54:25.775Z" title="发表于 2024-08-03 21:54:25">2024-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-09-03T03:02:15.427Z" title="更新于 2024-09-03 11:02:15">2024-09-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8B/">课下</a></span></div><div class="content">前言成绩出来了,大力推荐这个暑期课程,可以是全英,也可以是一般专业,最重要是给分很好!
该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
第一题【Problem Description】
Sort the grades for a class of students.
Input the names and grades of the students (maximum of 50 students in a class) into the console, and then output the names and grades of the students in descending order of their grades. If two students have the same grade, they are to be sorted according to the order of input.
【Input Format】
Input the ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2024/08/03/Summer_Python_3_under/" title="BUAA-SUMMER-PYTHON 第三次课下作业"><img class="post-bg" src="/img/9.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第三次课下作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/03/Summer_Python_3_under/" title="BUAA-SUMMER-PYTHON 第三次课下作业">BUAA-SUMMER-PYTHON 第三次课下作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-03T13:53:11.414Z" title="发表于 2024-08-03 21:53:11">2024-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-08-03T14:48:07.926Z" title="更新于 2024-08-03 22:48:07">2024-08-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8B/">课下</a></span></div><div class="content">前言该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
第一题【Problem Description】Write a program that can input a three-digit positive integer and output the corresponding number in reverse order. If the input number is not a three-digit positive integer, output -1.
【Input Format】Input a three-digit positive integer.
【Output Format】Output the value of the number after reversing the digits.
【Sample Input】
356
【Sample Output】
653
【Explanation】
The positive integer val ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/08/03/Summer_Python_3/" title="BUAA-SUMMER-PYTHON 第三次课上作业"><img class="post-bg" src="/img/2.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第三次课上作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/03/Summer_Python_3/" title="BUAA-SUMMER-PYTHON 第三次课上作业">BUAA-SUMMER-PYTHON 第三次课上作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-03T13:50:32.278Z" title="发表于 2024-08-03 21:50:32">2024-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-08-03T14:48:14.194Z" title="更新于 2024-08-03 22:48:14">2024-08-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8A/">课上</a></span></div><div class="content">前言该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
选择题
Which of the following options is not a reserved word in the Python programming language?A. passB. whileC. doD. except
Which of the following options does not comply with the variable naming rules in the Python programming language?A. 33keywordB. keyword_33C. 33_keywordD. keyword33
Regarding the eval function, which of the following options describes incorrectly:A. The execution of eval(“Hello”) and eval ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2024/08/03/Summer_Python_2_under/" title="BUAA-SUMMER-PYTHON 第二次课下作业"><img class="post-bg" src="/img/3.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第二次课下作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/03/Summer_Python_2_under/" title="BUAA-SUMMER-PYTHON 第二次课下作业">BUAA-SUMMER-PYTHON 第二次课下作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-03T13:26:38.664Z" title="发表于 2024-08-03 21:26:38">2024-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-08-03T14:47:51.644Z" title="更新于 2024-08-03 22:47:51">2024-08-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8B/">课下</a></span></div><div class="content">前言该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
title: BUAA-SUMMER-PYTHON 第二次课下作业categories:
- BUAA-SUMMER-PYTHON
- 课下
第一题【Problem Description】 A sequence of integers, where the first element is m and the second element is n, and each subsequent element after is the sum of the previous two elements. (-100≤n≤100, -100≤m≤100) For example, the sequence: 1, 1, 2, 3, 5, 8, 13, 21… Write a program that can take integer values m and n as input, solve th ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/08/03/Summer_Python_2/" title="BUAA-SUMMER-PYTHON 第二次课上作业"><img class="post-bg" src="/img/4.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第二次课上作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/03/Summer_Python_2/" title="BUAA-SUMMER-PYTHON 第二次课上作业">BUAA-SUMMER-PYTHON 第二次课上作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-03T13:21:50.777Z" title="发表于 2024-08-03 21:21:50">2024-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-08-03T14:47:58.870Z" title="更新于 2024-08-03 22:47:58">2024-08-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8A/">课上</a></span></div><div class="content">前言该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
选择题
Which of the below Python data type is mutable? _ A. Tuple B. String C. List D. Dictionary
Which Python built-in function is used to remove and return an element from a list? _ A. append() B. remove() C. pop() D. sort()
The following is a piece of code that sums up all the values in a dictionary and prints the result:
d = {"a": 1, "b": 2, "c": 3}total = _ ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2024/08/03/Summer_Python_1_under/" title="BUAA-SUMMER-PYTHON 第一次课下作业"><img class="post-bg" src="/img/2.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第一次课下作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/03/Summer_Python_1_under/" title="BUAA-SUMMER-PYTHON 第一次课下作业">BUAA-SUMMER-PYTHON 第一次课下作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-03T11:27:40.088Z" title="发表于 2024-08-03 19:27:40">2024-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-08-26T07:50:59.966Z" title="更新于 2024-08-26 15:50:59">2024-08-26</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8B/">课下</a></span></div><div class="content">前言该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
2025年第一次课下作业1【Description】
Gives two integers a and b as input, returns the value of a+b+a*b.
【Input】
A line contains two integers, separated by space, representing a and b.
【Output】
An integer, the value of a+b+a*b.
【Examples Input】
1 1
【Examples output】
3
【Example description】
1+1+1*1=3
【Notes】
For 100% of test cases, a,b in [1, 10000].
2【Description】
Given two strings s and t, returns the number of t ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/08/02/Summer_Python_1/" title="BUAA-SUMMER-PYTHON 第一次课上作业"><img class="post-bg" src="/img/9.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第一次课上作业"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/08/02/Summer_Python_1/" title="BUAA-SUMMER-PYTHON 第一次课上作业">BUAA-SUMMER-PYTHON 第一次课上作业</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-08-02T09:25:55.000Z" title="发表于 2024-08-02 17:25:55">2024-08-02</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-08-03T14:47:40.937Z" title="更新于 2024-08-03 22:47:40">2024-08-03</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/">BUAA-SUMMER-PYTHON</a><i class="fas fa-angle-right article-meta-link"></i><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8A/">课上</a></span></div><div class="content">前言这是2024-BUAA-Python 课程的一些经验分享。该网页含有课上和课下题目,没有题解。如要看题解(笨笨我写的,不是很好),可以移步https://github.com/Afeii1/BUAA_Summer_Python
选择题
Which option is the result of 100//3?A. 33B. 34C. 33.333333333333333D. 0.333333333333333
x is a two-digit integer variable. Which statement swaps its tens and units digits?A (x%10)10+x%10B (x%10)10+x//10C (x/10)%10+x%10D (x/10)%10+x//10
The output of the following code is ();
a,b,c,d,e,f = 'Python'b =
A.1 B.0 C.Error D.’y’
Which of the following statements ...</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://th.bing.com/th/id/OIP.9-OIc7zzbQR8lY-v-LIUQwHaHa?rs=1&pid=ImgDetMain" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"></div><div class="author-info__name">澄澈</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">8</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">4</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/Afeii1"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">Welcome to my blog.</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2024/08/26/MySQL%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95/" title="MySQL基本语法"><img src="/img/4.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="MySQL基本语法"></a><div class="content"><a class="title" href="/2024/08/26/MySQL%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95/" title="MySQL基本语法">MySQL基本语法</a><time datetime="2024-08-26T07:49:30.843Z" title="发表于 2024-08-26 15:49:30">2024-08-26</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/08/03/Summer_Python_4_under/" title="BUAA-SUMMER-PYTHON 第四次课下作业"><img src="/img/3.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第四次课下作业"></a><div class="content"><a class="title" href="/2024/08/03/Summer_Python_4_under/" title="BUAA-SUMMER-PYTHON 第四次课下作业">BUAA-SUMMER-PYTHON 第四次课下作业</a><time datetime="2024-08-03T13:54:25.775Z" title="发表于 2024-08-03 21:54:25">2024-08-03</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/08/03/Summer_Python_3_under/" title="BUAA-SUMMER-PYTHON 第三次课下作业"><img src="/img/9.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第三次课下作业"></a><div class="content"><a class="title" href="/2024/08/03/Summer_Python_3_under/" title="BUAA-SUMMER-PYTHON 第三次课下作业">BUAA-SUMMER-PYTHON 第三次课下作业</a><time datetime="2024-08-03T13:53:11.414Z" title="发表于 2024-08-03 21:53:11">2024-08-03</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/08/03/Summer_Python_3/" title="BUAA-SUMMER-PYTHON 第三次课上作业"><img src="/img/2.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第三次课上作业"></a><div class="content"><a class="title" href="/2024/08/03/Summer_Python_3/" title="BUAA-SUMMER-PYTHON 第三次课上作业">BUAA-SUMMER-PYTHON 第三次课上作业</a><time datetime="2024-08-03T13:50:32.278Z" title="发表于 2024-08-03 21:50:32">2024-08-03</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/08/03/Summer_Python_2_under/" title="BUAA-SUMMER-PYTHON 第二次课下作业"><img src="/img/3.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="BUAA-SUMMER-PYTHON 第二次课下作业"></a><div class="content"><a class="title" href="/2024/08/03/Summer_Python_2_under/" title="BUAA-SUMMER-PYTHON 第二次课下作业">BUAA-SUMMER-PYTHON 第二次课下作业</a><time datetime="2024-08-03T13:26:38.664Z" title="发表于 2024-08-03 21:26:38">2024-08-03</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/categories/BUAA-SUMMER-PYTHON/"><span class="card-category-list-name">BUAA-SUMMER-PYTHON</span><span class="card-category-list-count">7</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8A/"><span class="card-category-list-name">课上</span><span class="card-category-list-count">3</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/BUAA-SUMMER-PYTHON/%E8%AF%BE%E4%B8%8B/"><span class="card-category-list-name">课下</span><span class="card-category-list-count">4</span></a></li></ul></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/MySQL/"><span class="card-category-list-name">MySQL</span><span class="card-category-list-count">1</span></a></li>
</ul></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2024/08/"><span class="card-archive-list-date">八月 2024</span><span class="card-archive-list-count">8</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">8</div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">8.9k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastpushdate="2024-09-22T12:56:14.593Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer" style="background: transparent"><div id="footer-wrap"><div class="copyright">©2024 By 澄澈</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js?v=4.13.0"></script><script src="/js/main.js?v=4.13.0"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/medium-zoom.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/snackbar.min.js"></script><script>function panguFn () {
if (typeof pangu === 'object') pangu.autoSpacingPage()
else {
getScript('https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/pangu.min.js')
.then(() => {
pangu.autoSpacingPage()
})
}
}
function panguInit () {
if (true){
GLOBAL_CONFIG_SITE.isPost && panguFn()
} else {
panguFn()
}
}
document.addEventListener('DOMContentLoaded', panguInit)</script><div class="js-pjax"><script>window.typedJSFn = {
init: (str) => {
window.typed = new Typed('#subtitle', Object.assign({
strings: str,
startDelay: 300,
typeSpeed: 150,
loop: true,
backSpeed: 50,
}, null))
},
run: (subtitleType) => {
if (true) {
if (typeof Typed === 'function') {
subtitleType()
} else {
getScript('https://cdn.jsdelivr.net/npm/[email protected]/dist/typed.umd.min.js').then(subtitleType)
}
} else {
subtitleType()
}
}
}
</script><script>function subtitleType () {
if (true) {
typedJSFn.init(["你","一会看我","一会看云","我觉得","你看我时很远","你看云时很近"])
} else {
document.getElementById("subtitle").textContent = "你"
}
}
typedJSFn.run(subtitleType)</script><script>(() => {
const $mermaid = document.querySelectorAll('#article-container .mermaid-wrap')
if ($mermaid.length === 0) return
const runMermaid = () => {
window.loadMermaid = true
const theme = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'default'
Array.from($mermaid).forEach((item, index) => {
const mermaidSrc = item.firstElementChild
const mermaidThemeConfig = '%%{init:{ \'theme\':\'' + theme + '\'}}%%\n'
const mermaidID = 'mermaid-' + index
const mermaidDefinition = mermaidThemeConfig + mermaidSrc.textContent
const renderFn = mermaid.render(mermaidID, mermaidDefinition)
const renderV10 = () => {
renderFn.then(({svg}) => {
mermaidSrc.insertAdjacentHTML('afterend', svg)
})
}
const renderV9 = svg => {
mermaidSrc.insertAdjacentHTML('afterend', svg)
}
typeof renderFn === 'string' ? renderV9(renderFn) : renderV10()
})
}
const loadMermaid = () => {
window.loadMermaid ? runMermaid() : getScript('https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js').then(runMermaid)
}
btf.addGlobalFn('themeChange', runMermaid, 'mermaid')
window.pjax ? loadMermaid() : document.addEventListener('DOMContentLoaded', loadMermaid)
})()</script></div><script defer="" src="https://npm.elemecdn.com/jquery@latest/dist/jquery.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zindex="-1" count="99" mobile="false" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/canvas-nest.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = false;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-show-text" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/click-show-text.min.js" data-mobile="false" data-text="OO,OS,CO" data-fontsize="15px" data-random="false" async="async"></script><script async="" data-pjax="" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="algolia-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="search-wrap"><div id="algolia-search-input"></div><hr><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-info"><div class="algolia-stats"></div><div class="algolia-poweredBy"></div></div></div></div></div><div id="search-mask"></div><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/algoliasearch-lite.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.production.min.js"></script><script src="/js/search/algolia.js?v=4.13.0"></script></div></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/hibiki.model.json"},"display":{"position":"left","width":150,"height":300},"mobile":{"show":true},"log":false});</script></body></html>