Skip to content

Commit 572acea

Browse files
committed
* rerun 102
1 parent 7c3dcf3 commit 572acea

File tree

1 file changed

+39
-102
lines changed

1 file changed

+39
-102
lines changed

102-Python进阶.ipynb

+39-102
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"metadata": {
33
"celltoolbar": "Slideshow",
44
"name": "",
5-
"signature": "sha256:c06867bf51936c3a35a4676a61d3df6e0ed4b8b1aedd40593ee91089f9487ba6"
5+
"signature": "sha256:2be300068ba848743c387dd0d4e6518b899fefd5285bf755572eaa7b78c84773"
66
},
77
"nbformat": 3,
88
"nbformat_minor": 0,
@@ -648,8 +648,8 @@
648648
"output_type": "stream",
649649
"stream": "stdout",
650650
"text": [
651-
"CPU times: user 3.4 s, sys: 16 ms, total: 3.42 s\n",
652-
"Wall time: 3.41 s\n"
651+
"CPU times: user 3.66 s, sys: 0 ns, total: 3.66 s\n",
652+
"Wall time: 3.66 s\n"
653653
]
654654
},
655655
{
@@ -705,7 +705,7 @@
705705
"stream": "stdout",
706706
"text": [
707707
"CPU times: user 0 ns, sys: 0 ns, total: 0 ns\n",
708-
"Wall time: 78 \u00b5s\n"
708+
"Wall time: 104 \u00b5s\n"
709709
]
710710
},
711711
{
@@ -772,7 +772,7 @@
772772
"stream": "stdout",
773773
"text": [
774774
"CPU times: user 0 ns, sys: 0 ns, total: 0 ns\n",
775-
"Wall time: 81.1 \u00b5s\n"
775+
"Wall time: 83.9 \u00b5s\n"
776776
]
777777
},
778778
{
@@ -872,7 +872,7 @@
872872
"output_type": "stream",
873873
"stream": "stdout",
874874
"text": [
875-
"<generator object fib_seq at 0x7f9a124368c0>\n",
875+
"<generator object fib_seq at 0x7fc8cb49ca50>\n",
876876
"[2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711]\n"
877877
]
878878
}
@@ -2005,7 +2005,7 @@
20052005
"output_type": "stream",
20062006
"stream": "stdout",
20072007
"text": [
2008-
"-rw-r--r-- 1 shell shell 72 9\u6708 5 18:14 abc.txt\r\n"
2008+
"-rw-r--r-- 1 shell shell 72 10\u6708 13 11:49 abc.txt\r\n"
20092009
]
20102010
}
20112011
],
@@ -2096,7 +2096,7 @@
20962096
"output_type": "stream",
20972097
"stream": "stdout",
20982098
"text": [
2099-
"-rw-r--r-- 1 shell shell 48 9\u6708 5 18:14 abc.txt\r\n"
2099+
"-rw-r--r-- 1 shell shell 48 10\u6708 13 11:49 abc.txt\r\n"
21002100
]
21012101
}
21022102
],
@@ -2673,7 +2673,7 @@
26732673
"output_type": "stream",
26742674
"stream": "stdout",
26752675
"text": [
2676-
"<_sre.SRE_Match object at 0x7f9a0819a7e8>\n",
2676+
"<_sre.SRE_Match object at 0x7fc8c9c6e1d0>\n",
26772677
"None\n"
26782678
]
26792679
}
@@ -2704,10 +2704,10 @@
27042704
"output_type": "stream",
27052705
"stream": "stdout",
27062706
"text": [
2707-
"<_sre.SRE_Match object at 0x7f9a0819a988>\n",
2707+
"<_sre.SRE_Match object at 0x7fc8c9c6e370>\n",
27082708
"None\n",
27092709
"None\n",
2710-
"<_sre.SRE_Match object at 0x7f9a0819a988>\n"
2710+
"<_sre.SRE_Match object at 0x7fc8c9c6e370>\n"
27112711
]
27122712
}
27132713
],
@@ -2735,7 +2735,7 @@
27352735
"output_type": "stream",
27362736
"stream": "stdout",
27372737
"text": [
2738-
"<_sre.SRE_Match object at 0x7f9a123f53c0>\n",
2738+
"<_sre.SRE_Match object at 0x7fc8c9c44458>\n",
27392739
"None\n"
27402740
]
27412741
}
@@ -2764,7 +2764,7 @@
27642764
"output_type": "stream",
27652765
"stream": "stdout",
27662766
"text": [
2767-
"<_sre.SRE_Match object at 0x7f9a123f5750>\n",
2767+
"<_sre.SRE_Match object at 0x7fc8c9c440c8>\n",
27682768
"None\n"
27692769
]
27702770
}
@@ -2827,7 +2827,7 @@
28272827
"output_type": "stream",
28282828
"stream": "stdout",
28292829
"text": [
2830-
"-rw-r--r-- 1 shell shell 46 9\u6708 5 18:14 shoplist.data\r\n"
2830+
"-rw-r--r-- 1 shell shell 46 10\u6708 13 11:49 shoplist.data\r\n"
28312831
]
28322832
}
28332833
],
@@ -3178,12 +3178,12 @@
31783178
"output_type": "stream",
31793179
"stream": "stdout",
31803180
"text": [
3181-
"\u5434\n",
3182-
"\u8d75\n",
3183-
"\u738b\n",
31843181
"\u5b59\n",
3185-
"\u8d75\n",
3186-
"\u8d75\n"
3182+
"\u90d1\n",
3183+
"\u90d1\n",
3184+
"\u5b59\n",
3185+
"\u5434\n",
3186+
"\u94b1\n"
31873187
]
31883188
}
31893189
],
@@ -3216,12 +3216,12 @@
32163216
"output_type": "stream",
32173217
"stream": "stdout",
32183218
"text": [
3219-
"\u94b1\n",
3220-
"\u5b59\n",
32213219
"\u8d75\n",
3222-
"\u5434\n",
3220+
"\u94b1\n",
3221+
"\u674e\n",
3222+
"\u5468\n",
32233223
"\u90d1\n",
3224-
"\u674e\n"
3224+
"\u738b\n"
32253225
]
32263226
}
32273227
],
@@ -3496,7 +3496,7 @@
34963496
"text": [
34973497
"\n",
34983498
"----------------------------------------------------------------------\n",
3499-
"Ran 3 tests in 0.001s\n",
3499+
"Ran 3 tests in 0.004s\n",
35003500
"\n",
35013501
"OK\n"
35023502
]
@@ -3697,10 +3697,10 @@
36973697
"Traceback (most recent call last):\n",
36983698
" File \"<ipython-input-74-ea312ac19d96>\", line 25, in test_wrong\n",
36993699
" self.assertFalse(self.r.match('192.168.0.999'))\n",
3700-
"AssertionError: <_sre.SRE_Match object at 0x7f9a080c5850> is not false\n",
3700+
"AssertionError: <_sre.SRE_Match object at 0x7fc8c9c8b440> is not false\n",
37013701
"\n",
37023702
"----------------------------------------------------------------------\n",
3703-
"Ran 9 tests in 0.003s\n",
3703+
"Ran 9 tests in 0.006s\n",
37043704
"\n",
37053705
"FAILED (failures=1)\n"
37063706
]
@@ -4247,16 +4247,7 @@
42474247
"output_type": "stream",
42484248
"stream": "stdout",
42494249
"text": [
4250-
"************* Module calc\r\n",
4251-
"C: 11, 0: Wrong continued indentation (add 6 spaces).\r\n",
4252-
" ')': None,\r\n",
4253-
" ^ | (bad-continuation)\r\n",
4254-
"C: 12, 0: Wrong continued indentation (add 6 spaces).\r\n",
4255-
" '+': lambda x, y: x+y,\r\n",
4256-
" ^ | (bad-continuation)\r\n",
4257-
"C: 13, 0: Wrong continued indentation (add 6 spaces).\r\n",
4258-
" '-': lambda x, y: x-y,\r\n",
4259-
" ^ | (bad-continuation)\r\n"
4250+
"/bin/sh: pylint: \u672a\u627e\u5230\u547d\u4ee4\r\n"
42604251
]
42614252
}
42624253
],
@@ -4275,11 +4266,7 @@
42754266
"output_type": "stream",
42764267
"stream": "stdout",
42774268
"text": [
4278-
"\r\n",
4279-
"Global evaluation\r\n",
4280-
"-----------------\r\n",
4281-
"Your code has been rated at 4.00/10 (previous run: 4.00/10, +0.00)\r\n",
4282-
"\r\n"
4269+
"/bin/sh: pylint: \u672a\u627e\u5230\u547d\u4ee4\r\n"
42834270
]
42844271
}
42854272
],
@@ -4302,27 +4289,7 @@
43024289
"output_type": "stream",
43034290
"stream": "stdout",
43044291
"text": [
4305-
"calc.py:11:5: E128 continuation line under-indented for visual indent\r\n",
4306-
"calc.py:12:5: E128 continuation line under-indented for visual indent\r\n",
4307-
"calc.py:13:5: E128 continuation line under-indented for visual indent\r\n",
4308-
"calc.py:14:5: E128 continuation line under-indented for visual indent\r\n",
4309-
"calc.py:15:5: E128 continuation line under-indented for visual indent\r\n",
4310-
"calc.py:15:33: E231 missing whitespace after ','\r\n",
4311-
"calc.py:18:5: E128 continuation line under-indented for visual indent\r\n",
4312-
"calc.py:19:5: E128 continuation line under-indented for visual indent\r\n",
4313-
"calc.py:19:12: E231 missing whitespace after ','\r\n",
4314-
"calc.py:21:1: E302 expected 2 blank lines, found 1\r\n",
4315-
"calc.py:25:17: E701 multiple statements on one line (colon)\r\n",
4316-
"calc.py:28:13: E701 multiple statements on one line (colon)\r\n",
4317-
"calc.py:29:9: E701 multiple statements on one line (colon)\r\n",
4318-
"calc.py:31:1: E302 expected 2 blank lines, found 1\r\n",
4319-
"calc.py:33:23: E701 multiple statements on one line (colon)\r\n",
4320-
"calc.py:35:1: E302 expected 2 blank lines, found 1\r\n",
4321-
"calc.py:43:1: E302 expected 2 blank lines, found 1\r\n",
4322-
"calc.py:46:20: E701 multiple statements on one line (colon)\r\n",
4323-
"calc.py:55:66: E701 multiple statements on one line (colon)\r\n",
4324-
"calc.py:62:1: E302 expected 2 blank lines, found 1\r\n",
4325-
"calc.py:68:34: W292 no newline at end of file\r\n"
4292+
"/bin/sh: flake8: \u672a\u627e\u5230\u547d\u4ee4\r\n"
43264293
]
43274294
}
43284295
],
@@ -4345,11 +4312,7 @@
43454312
"output_type": "stream",
43464313
"stream": "stdout",
43474314
"text": [
4348-
"21:1: 'parser_exp' 5\r\n",
4349-
"31:1: 'find_last_op' 3\r\n",
4350-
"43:1: 'eval_exp' 8\r\n",
4351-
"62:1: 'calc' 1\r\n",
4352-
"35:1: 'force_stack' 1\r\n"
4315+
"/usr/bin/python3: No module named mccabe\r\n"
43534316
]
43544317
}
43554318
],
@@ -4486,16 +4449,7 @@
44864449
"output_type": "stream",
44874450
"stream": "stdout",
44884451
"text": [
4489-
"************* Module calc\r\n",
4490-
"C: 91, 0: Final newline missing (missing-final-newline)\r\n",
4491-
"C: 13, 0: Invalid constant name \"op_set\" (invalid-name)\r\n",
4492-
"C: 23, 0: Invalid constant name \"op_priority\" (invalid-name)\r\n",
4493-
"C: 32, 4: Invalid variable name \"s\" (invalid-name)\r\n",
4494-
"C: 33, 8: Invalid variable name \"c\" (invalid-name)\r\n",
4495-
"C: 37,12: Invalid variable name \"s\" (invalid-name)\r\n",
4496-
"C: 40,12: Invalid variable name \"s\" (invalid-name)\r\n",
4497-
"C: 45, 0: Invalid argument name \"l\" (invalid-name)\r\n",
4498-
"C: 46, 8: Invalid variable name \"e\" (invalid-name)\r\n"
4452+
"/bin/sh: pylint: \u672a\u627e\u5230\u547d\u4ee4\r\n"
44994453
]
45004454
}
45014455
],
@@ -4514,11 +4468,7 @@
45144468
"output_type": "stream",
45154469
"stream": "stdout",
45164470
"text": [
4517-
"\r\n",
4518-
"Global evaluation\r\n",
4519-
"-----------------\r\n",
4520-
"Your code has been rated at 7.36/10 (previous run: 7.36/10, +0.00)\r\n",
4521-
"\r\n"
4471+
"/bin/sh: pylint: \u672a\u627e\u5230\u547d\u4ee4\r\n"
45224472
]
45234473
}
45244474
],
@@ -4541,7 +4491,7 @@
45414491
"output_type": "stream",
45424492
"stream": "stdout",
45434493
"text": [
4544-
"calc.py:91:34: W292 no newline at end of file\r\n"
4494+
"/bin/sh: flake8: \u672a\u627e\u5230\u547d\u4ee4\r\n"
45454495
]
45464496
}
45474497
],
@@ -4564,7 +4514,7 @@
45644514
"output_type": "stream",
45654515
"stream": "stdout",
45664516
"text": [
4567-
"calc.py:91:34: W292 no newline at end of file\r\n"
4517+
"/bin/sh: flake8: \u672a\u627e\u5230\u547d\u4ee4\r\n"
45684518
]
45694519
}
45704520
],
@@ -4600,18 +4550,7 @@
46004550
"output_type": "stream",
46014551
"stream": "stdout",
46024552
"text": [
4603-
"* 2.0 3.0 => 6.0\r\n",
4604-
"+ 6.0 1.0 => 7.0\r\n",
4605-
"7.0\r\n",
4606-
"* 2.0 3.0 => 6.0\r\n",
4607-
"+ 1.0 6.0 => 7.0\r\n",
4608-
"7.0\r\n",
4609-
"/ 2.5 10.0 => 0.25\r\n",
4610-
"+ 1.1 0.25 => 1.35\r\n",
4611-
"* 1.35 3.0 => 4.05\r\n",
4612-
"/ 4.05 4.0 => 1.0125\r\n",
4613-
"+ 1.0125 1.0 => 2.0125\r\n",
4614-
"2.0125\r\n"
4553+
"/bin/sh: python-coverage: \u672a\u627e\u5230\u547d\u4ee4\r\n"
46154554
]
46164555
}
46174556
],
@@ -4630,9 +4569,7 @@
46304569
"output_type": "stream",
46314570
"stream": "stdout",
46324571
"text": [
4633-
"Name Stmts Miss Cover Missing\r\n",
4634-
"---------------------------------------\r\n",
4635-
"calc.py 54 0 100%\r\n"
4572+
"/bin/sh: python-coverage: \u672a\u627e\u5230\u547d\u4ee4\r\n"
46364573
]
46374574
}
46384575
],
@@ -4862,7 +4799,7 @@
48624799
"language": "python",
48634800
"metadata": {},
48644801
"outputs": [],
4865-
"prompt_number": 1
4802+
"prompt_number": 93
48664803
},
48674804
{
48684805
"cell_type": "markdown",
@@ -4896,7 +4833,7 @@
48964833
"language": "python",
48974834
"metadata": {},
48984835
"outputs": [],
4899-
"prompt_number": 2
4836+
"prompt_number": 94
49004837
},
49014838
{
49024839
"cell_type": "markdown",
@@ -4935,7 +4872,7 @@
49354872
]
49364873
}
49374874
],
4938-
"prompt_number": 3
4875+
"prompt_number": 95
49394876
},
49404877
{
49414878
"cell_type": "markdown",

0 commit comments

Comments
 (0)