seasp...@gmail.com wrote:
> I need to replace all tag with after ■. But the result from
> below is '■ D / '
> Can you explain what I did wrong, please.
>
> s = '■A B C D / '
> soup = BeautifulSoup(s)
> for i in soup.find_all(text='■'):
> tag = soup.new_tag('span')
8 Dihedral於 2013年12月16日星期一UTC+8下午4時02分42秒寫道:
> On Monday, December 16, 2013 2:41:08 PM UTC+8, seas...@gmail.com wrote:
>
> > I need to replace all tag with after ■. But the result from
> > below is '■ D / '
>
> >
>
> > Can you explain what I did wrong, please.
>
> >
>
> >
>
> >
>
On 16.12.2013 07:41, seasp...@gmail.com wrote:
I need to replace all tag with after ■. But the result
frombelow is '■ D / '
Can you explain what I did wrong, please.
s = '■A B C D / '
soup = BeautifulSoup(s)
for i in soup.find_all(text='■'):
tag = soup.new_tag('span')
seas...@gmail.com於 2013年12月16日星期一UTC+8下午2時41分08秒寫道:
> I need to replace all tag with after ■. But the result from below
> is '■ D / '
>
> Can you explain what I did wrong, please.
>
>
>
> s = '■A B C D / '
>
> soup = BeautifulSoup(s)
>
> for i in soup.find_all(text='■'):
>
>
On Monday, December 16, 2013 2:41:08 PM UTC+8, seas...@gmail.com wrote:
> I need to replace all tag with after ■. But the result from below
> is '■ D / '
>
> Can you explain what I did wrong, please.
>
>
>
> s = '■A B C D / '
>
> soup = BeautifulSoup(s)
>
> for i in soup.find
I need to replace all tag with after ■. But the result from
below is '■ D / '
Can you explain what I did wrong, please.
s = '■A B C D / '
soup = BeautifulSoup(s)
for i in soup.find_all(text='■'):
tag = soup.new_tag('span')
tag['style'] = 'REPLACE'
for i