Skip to content

Commit 9eb66f6

Browse files
committed
update exe6
1 parent 8245528 commit 9eb66f6

File tree

1 file changed

+5
-45
lines changed

1 file changed

+5
-45
lines changed

exe6.ipynb

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -448,20 +448,12 @@
448448
},
449449
{
450450
"cell_type": "code",
451-
"execution_count": 8,
451+
"execution_count": 2,
452452
"metadata": {},
453453
"outputs": [],
454454
"source": [
455455
"# 6.18 skipped, seemed redundant with 6.3\n",
456456
"# 6.19, referred\n",
457-
"'''In Code Fragment 6.5 we assume that opening tags in HTML have form\n",
458-
"<name>, as with <li>. More generally, HTML allows optional attributes\n",
459-
"to be expressed as part of an opening tag. The general form used is\n",
460-
"<name attribute1=\"value1\" attribute2=\"value2\">; for example,\n",
461-
"a table can be given a border and additional padding by using an opening\n",
462-
"tag of <table border=\"3\" cellpadding=\"5\">. Modify Code Frag-\n",
463-
"ment 6.5 so that it can properly match tags, even when an opening tag\n",
464-
"may include one or more such attributes.'''\n",
465457
"\n",
466458
"def is_matched_html(raw):\n",
467459
" S = ArrayStack()\n",
@@ -488,42 +480,9 @@
488480
},
489481
{
490482
"cell_type": "code",
491-
"execution_count": 9,
483+
"execution_count": null,
492484
"metadata": {},
493-
"outputs": [
494-
{
495-
"name": "stdout",
496-
"output_type": "stream",
497-
"text": [
498-
"body\n",
499-
"center\n",
500-
"h1\n",
501-
"/h1\n",
502-
"/center\n",
503-
"p\n",
504-
"/p\n",
505-
"ol\n",
506-
"li\n",
507-
"/li\n",
508-
"li\n",
509-
"/li\n",
510-
"li\n",
511-
"/li\n",
512-
"/ol\n",
513-
"/body\n"
514-
]
515-
},
516-
{
517-
"data": {
518-
"text/plain": [
519-
"True"
520-
]
521-
},
522-
"execution_count": 9,
523-
"metadata": {},
524-
"output_type": "execute_result"
525-
}
526-
],
485+
"outputs": [],
527486
"source": [
528487
"html = \"\"\"\n",
529488
"<body>\n",
@@ -550,12 +509,13 @@
550509
},
551510
{
552511
"cell_type": "code",
553-
"execution_count": 10,
512+
"execution_count": 3,
554513
"metadata": {},
555514
"outputs": [],
556515
"source": [
557516
"# 6.20, 6.21 skipped\n",
558517
"# 6.22, referred\n",
518+
"\n",
559519
"import operator\n",
560520
"\n",
561521
"class Empty(Exception):\n",

0 commit comments

Comments
 (0)