質問編集履歴

1

エラーと、表の例を書き加えました。

2018/07/30 09:15

投稿

TakeruAsanoi
TakeruAsanoi

スコア8

test CHANGED
File without changes
test CHANGED
@@ -705,3 +705,43 @@
705
705
  "
706
706
 
707
707
  このようなデータになっています。
708
+
709
+
710
+
711
+ エラーは
712
+
713
+ ---------------------------------------------------------------------------
714
+
715
+ TypeError Traceback (most recent call last)
716
+
717
+ <ipython-input-2-dfea02db3f9f> in <module>()
718
+
719
+ 8 print (html.dtypes)
720
+
721
+ 9 regexp = re.compile("<rayt.*/rayt>")
722
+
723
+ ---> 10 atags = regexp.findall(html)
724
+
725
+ 11 for atag in atags:
726
+
727
+ 12 html = html.replace(atag, "")
728
+
729
+
730
+
731
+ TypeError: expected string or bytes-like object
732
+
733
+ となっています。
734
+
735
+
736
+
737
+ 表例
738
+
739
+ a b c d e f g h i j
740
+
741
+ 11:15 - 5 - 30 - 15 - 10 15 -
742
+
743
+ 11:45...
744
+
745
+
746
+
747
+ のようにしていただきたいです。