我目前正在尝试构建一个与我自己和同学的定义相匹配的iOS游戏。
我很难想如何将带有.docx文件中定义的单词列表转换成某些东西(JSON,XML,...),然后我可以将它读入数组或字典。
.docx中的大多数单词都具有以下格式:“Word():Definition。”
I am currently trying to build an iOS game that match word with its definition for myself and my classmates.
I'm having a hard time thinking how do I go about converting a list of words with their definitions in a .docx files into something(JSON, XML, ...) that I can then read it into an Array or Dictionary.
Most of the words in the .docx have the following format: " Word (): Definition. "
最满意答案
使用excel会更容易。 Excel已经具有导出到xml的功能,并且应该让您的生活更轻松,而不是从docx中获取所有单词,然后将它们转换为JSON或XML。
http://www.excel-easy.com/examples/xml.html
This would be easier with excel. Excel already has the function to export to xml, and should make your life a lot easier, instead of getting all the words out of docx and then converting them to either JSON or XML.
http://www.excel-easy.com/examples/xml.html
更多推荐
发布评论