|
2 | 2 | "metadata": {
|
3 | 3 | "celltoolbar": "Slideshow",
|
4 | 4 | "name": "",
|
5 |
| - "signature": "sha256:c06867bf51936c3a35a4676a61d3df6e0ed4b8b1aedd40593ee91089f9487ba6" |
| 5 | + "signature": "sha256:2be300068ba848743c387dd0d4e6518b899fefd5285bf755572eaa7b78c84773" |
6 | 6 | },
|
7 | 7 | "nbformat": 3,
|
8 | 8 | "nbformat_minor": 0,
|
|
648 | 648 | "output_type": "stream",
|
649 | 649 | "stream": "stdout",
|
650 | 650 | "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" |
653 | 653 | ]
|
654 | 654 | },
|
655 | 655 | {
|
|
705 | 705 | "stream": "stdout",
|
706 | 706 | "text": [
|
707 | 707 | "CPU times: user 0 ns, sys: 0 ns, total: 0 ns\n",
|
708 |
| - "Wall time: 78 \u00b5s\n" |
| 708 | + "Wall time: 104 \u00b5s\n" |
709 | 709 | ]
|
710 | 710 | },
|
711 | 711 | {
|
|
772 | 772 | "stream": "stdout",
|
773 | 773 | "text": [
|
774 | 774 | "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" |
776 | 776 | ]
|
777 | 777 | },
|
778 | 778 | {
|
|
872 | 872 | "output_type": "stream",
|
873 | 873 | "stream": "stdout",
|
874 | 874 | "text": [
|
875 |
| - "<generator object fib_seq at 0x7f9a124368c0>\n", |
| 875 | + "<generator object fib_seq at 0x7fc8cb49ca50>\n", |
876 | 876 | "[2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711]\n"
|
877 | 877 | ]
|
878 | 878 | }
|
|
2005 | 2005 | "output_type": "stream",
|
2006 | 2006 | "stream": "stdout",
|
2007 | 2007 | "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" |
2009 | 2009 | ]
|
2010 | 2010 | }
|
2011 | 2011 | ],
|
|
2096 | 2096 | "output_type": "stream",
|
2097 | 2097 | "stream": "stdout",
|
2098 | 2098 | "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" |
2100 | 2100 | ]
|
2101 | 2101 | }
|
2102 | 2102 | ],
|
|
2673 | 2673 | "output_type": "stream",
|
2674 | 2674 | "stream": "stdout",
|
2675 | 2675 | "text": [
|
2676 |
| - "<_sre.SRE_Match object at 0x7f9a0819a7e8>\n", |
| 2676 | + "<_sre.SRE_Match object at 0x7fc8c9c6e1d0>\n", |
2677 | 2677 | "None\n"
|
2678 | 2678 | ]
|
2679 | 2679 | }
|
|
2704 | 2704 | "output_type": "stream",
|
2705 | 2705 | "stream": "stdout",
|
2706 | 2706 | "text": [
|
2707 |
| - "<_sre.SRE_Match object at 0x7f9a0819a988>\n", |
| 2707 | + "<_sre.SRE_Match object at 0x7fc8c9c6e370>\n", |
2708 | 2708 | "None\n",
|
2709 | 2709 | "None\n",
|
2710 |
| - "<_sre.SRE_Match object at 0x7f9a0819a988>\n" |
| 2710 | + "<_sre.SRE_Match object at 0x7fc8c9c6e370>\n" |
2711 | 2711 | ]
|
2712 | 2712 | }
|
2713 | 2713 | ],
|
|
2735 | 2735 | "output_type": "stream",
|
2736 | 2736 | "stream": "stdout",
|
2737 | 2737 | "text": [
|
2738 |
| - "<_sre.SRE_Match object at 0x7f9a123f53c0>\n", |
| 2738 | + "<_sre.SRE_Match object at 0x7fc8c9c44458>\n", |
2739 | 2739 | "None\n"
|
2740 | 2740 | ]
|
2741 | 2741 | }
|
|
2764 | 2764 | "output_type": "stream",
|
2765 | 2765 | "stream": "stdout",
|
2766 | 2766 | "text": [
|
2767 |
| - "<_sre.SRE_Match object at 0x7f9a123f5750>\n", |
| 2767 | + "<_sre.SRE_Match object at 0x7fc8c9c440c8>\n", |
2768 | 2768 | "None\n"
|
2769 | 2769 | ]
|
2770 | 2770 | }
|
|
2827 | 2827 | "output_type": "stream",
|
2828 | 2828 | "stream": "stdout",
|
2829 | 2829 | "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" |
2831 | 2831 | ]
|
2832 | 2832 | }
|
2833 | 2833 | ],
|
|
3178 | 3178 | "output_type": "stream",
|
3179 | 3179 | "stream": "stdout",
|
3180 | 3180 | "text": [
|
3181 |
| - "\u5434\n", |
3182 |
| - "\u8d75\n", |
3183 |
| - "\u738b\n", |
3184 | 3181 | "\u5b59\n",
|
3185 |
| - "\u8d75\n", |
3186 |
| - "\u8d75\n" |
| 3182 | + "\u90d1\n", |
| 3183 | + "\u90d1\n", |
| 3184 | + "\u5b59\n", |
| 3185 | + "\u5434\n", |
| 3186 | + "\u94b1\n" |
3187 | 3187 | ]
|
3188 | 3188 | }
|
3189 | 3189 | ],
|
|
3216 | 3216 | "output_type": "stream",
|
3217 | 3217 | "stream": "stdout",
|
3218 | 3218 | "text": [
|
3219 |
| - "\u94b1\n", |
3220 |
| - "\u5b59\n", |
3221 | 3219 | "\u8d75\n",
|
3222 |
| - "\u5434\n", |
| 3220 | + "\u94b1\n", |
| 3221 | + "\u674e\n", |
| 3222 | + "\u5468\n", |
3223 | 3223 | "\u90d1\n",
|
3224 |
| - "\u674e\n" |
| 3224 | + "\u738b\n" |
3225 | 3225 | ]
|
3226 | 3226 | }
|
3227 | 3227 | ],
|
|
3496 | 3496 | "text": [
|
3497 | 3497 | "\n",
|
3498 | 3498 | "----------------------------------------------------------------------\n",
|
3499 |
| - "Ran 3 tests in 0.001s\n", |
| 3499 | + "Ran 3 tests in 0.004s\n", |
3500 | 3500 | "\n",
|
3501 | 3501 | "OK\n"
|
3502 | 3502 | ]
|
|
3697 | 3697 | "Traceback (most recent call last):\n",
|
3698 | 3698 | " File \"<ipython-input-74-ea312ac19d96>\", line 25, in test_wrong\n",
|
3699 | 3699 | " 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", |
3701 | 3701 | "\n",
|
3702 | 3702 | "----------------------------------------------------------------------\n",
|
3703 |
| - "Ran 9 tests in 0.003s\n", |
| 3703 | + "Ran 9 tests in 0.006s\n", |
3704 | 3704 | "\n",
|
3705 | 3705 | "FAILED (failures=1)\n"
|
3706 | 3706 | ]
|
|
4247 | 4247 | "output_type": "stream",
|
4248 | 4248 | "stream": "stdout",
|
4249 | 4249 | "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" |
4260 | 4251 | ]
|
4261 | 4252 | }
|
4262 | 4253 | ],
|
|
4275 | 4266 | "output_type": "stream",
|
4276 | 4267 | "stream": "stdout",
|
4277 | 4268 | "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" |
4283 | 4270 | ]
|
4284 | 4271 | }
|
4285 | 4272 | ],
|
|
4302 | 4289 | "output_type": "stream",
|
4303 | 4290 | "stream": "stdout",
|
4304 | 4291 | "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" |
4326 | 4293 | ]
|
4327 | 4294 | }
|
4328 | 4295 | ],
|
|
4345 | 4312 | "output_type": "stream",
|
4346 | 4313 | "stream": "stdout",
|
4347 | 4314 | "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" |
4353 | 4316 | ]
|
4354 | 4317 | }
|
4355 | 4318 | ],
|
|
4486 | 4449 | "output_type": "stream",
|
4487 | 4450 | "stream": "stdout",
|
4488 | 4451 | "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" |
4499 | 4453 | ]
|
4500 | 4454 | }
|
4501 | 4455 | ],
|
|
4514 | 4468 | "output_type": "stream",
|
4515 | 4469 | "stream": "stdout",
|
4516 | 4470 | "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" |
4522 | 4472 | ]
|
4523 | 4473 | }
|
4524 | 4474 | ],
|
|
4541 | 4491 | "output_type": "stream",
|
4542 | 4492 | "stream": "stdout",
|
4543 | 4493 | "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" |
4545 | 4495 | ]
|
4546 | 4496 | }
|
4547 | 4497 | ],
|
|
4564 | 4514 | "output_type": "stream",
|
4565 | 4515 | "stream": "stdout",
|
4566 | 4516 | "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" |
4568 | 4518 | ]
|
4569 | 4519 | }
|
4570 | 4520 | ],
|
|
4600 | 4550 | "output_type": "stream",
|
4601 | 4551 | "stream": "stdout",
|
4602 | 4552 | "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" |
4615 | 4554 | ]
|
4616 | 4555 | }
|
4617 | 4556 | ],
|
|
4630 | 4569 | "output_type": "stream",
|
4631 | 4570 | "stream": "stdout",
|
4632 | 4571 | "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" |
4636 | 4573 | ]
|
4637 | 4574 | }
|
4638 | 4575 | ],
|
|
4862 | 4799 | "language": "python",
|
4863 | 4800 | "metadata": {},
|
4864 | 4801 | "outputs": [],
|
4865 |
| - "prompt_number": 1 |
| 4802 | + "prompt_number": 93 |
4866 | 4803 | },
|
4867 | 4804 | {
|
4868 | 4805 | "cell_type": "markdown",
|
|
4896 | 4833 | "language": "python",
|
4897 | 4834 | "metadata": {},
|
4898 | 4835 | "outputs": [],
|
4899 |
| - "prompt_number": 2 |
| 4836 | + "prompt_number": 94 |
4900 | 4837 | },
|
4901 | 4838 | {
|
4902 | 4839 | "cell_type": "markdown",
|
|
4935 | 4872 | ]
|
4936 | 4873 | }
|
4937 | 4874 | ],
|
4938 |
| - "prompt_number": 3 |
| 4875 | + "prompt_number": 95 |
4939 | 4876 | },
|
4940 | 4877 | {
|
4941 | 4878 | "cell_type": "markdown",
|
|
0 commit comments