File tree Expand file tree Collapse file tree 1 file changed +5
-45
lines changed Expand file tree Collapse file tree 1 file changed +5
-45
lines changed Original file line number Diff line number Diff line change 448
448
},
449
449
{
450
450
"cell_type" : " code" ,
451
- "execution_count" : 8 ,
451
+ "execution_count" : 2 ,
452
452
"metadata" : {},
453
453
"outputs" : [],
454
454
"source" : [
455
455
" # 6.18 skipped, seemed redundant with 6.3\n " ,
456
456
" # 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 " ,
465
457
" \n " ,
466
458
" def is_matched_html(raw):\n " ,
467
459
" S = ArrayStack()\n " ,
488
480
},
489
481
{
490
482
"cell_type" : " code" ,
491
- "execution_count" : 9 ,
483
+ "execution_count" : null ,
492
484
"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" : [],
527
486
"source" : [
528
487
" html = \"\"\"\n " ,
529
488
" <body>\n " ,
550
509
},
551
510
{
552
511
"cell_type" : " code" ,
553
- "execution_count" : 10 ,
512
+ "execution_count" : 3 ,
554
513
"metadata" : {},
555
514
"outputs" : [],
556
515
"source" : [
557
516
" # 6.20, 6.21 skipped\n " ,
558
517
" # 6.22, referred\n " ,
518
+ " \n " ,
559
519
" import operator\n " ,
560
520
" \n " ,
561
521
" class Empty(Exception):\n " ,
You can’t perform that action at this time.
0 commit comments