SIGMAEditor.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:adtree-py 作者: uraplutonium 项目源码 文件源码
def load_event_seq_file():
    global FILE_NAME, EVENT_SEQ
    import tkFileDialog
    FILE_NAME = tkFileDialog.askopenfilename(
        filetypes=[("Event sequence file", ".txt")])
    try:
        file = open(FILE_NAME, "r")
        contents = file.read()
        file.close()
        print "Here are the contents of the event sequence file as read in: "
        print contents
        lines = contents.split("\n")
    except:
        print "Could not load new data from file: ", FILE_NAME
        return
    # Parse the contents:
    EVENT_SEQ = lines
    #print "EVENT_SEQ = "+str(EVENT_SEQ)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号