diff --git a/step1.py b/step1.py index d062fa5..3806129 100644 --- a/step1.py +++ b/step1.py @@ -3,6 +3,8 @@ # author: youxinyu # githb: yogayu +# added by daiao + from pyquery import PyQuery as pq f = open("step2/index.html", encoding='utf-8') @@ -21,3 +23,13 @@ else: result = doc(tag).text() print (result, end='') + +if tag == 'align': + h1Align= doc('h1').attr('align') + pAlign= doc('p').attr('align') + result = (h1Align and pAlign) + + +# print(result), +print (result, end='') +