>>> import xml.etree.ElementTree as et >>> tree=et.ElementTree(file='men.xml') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mynamae/anaconda3/lib/python3.7/xml/etree/ElementTree.py", line 558, in __init__ self.parse(file) File "/Users/myname/anaconda3/lib/python3.7/xml/etree/ElementTree.py", line 587, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'men.xml'
xmlをpython3で読み込もうとするとエラーが返ります。
何がエラーになっているのでしょうか?
申し訳ありませんが、どなたか教えて頂けますと幸いです。
よろしくお願い致します。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/22 02:20