def init_question_file(directory):
    if (directory[(- 1)] != '/'):
        directory += '/'
    path = (directory + 'question.csv')
    if (not os.path.exists(path)):
        columns = [u'问题ID', u'问题标题', u'问题描述', u'问题关注数', u'问题浏览数', u'问题评论数', u'URL', u'回答文件']
        with codecs.open(path, 'a+', 'utf-8') as f:
            line = ','.join(columns)
            line += '\n'
            f.write(line)
        logger.info(('Created question information file: %s' % path))
    return path
def init_question_file(directory):
    if (directory[(- 1)] != '/'):
        directory += '/'
    path = (directory + 'question.csv')
    if (not os.path.exists(path)):
        columns = [u'问题ID', u'问题标题', u'问题描述', u'问题关注数', u'问题浏览数', u'问题评论数', u'URL', u'回答文件']
        with codecs.open(path, 'a+', 'utf-8') as f:
            line = ','.join(columns)
            line += '\n'
            f.write(line)
        logger.info(('Created question information file: %s' % path))
    return path