示例#1
0
文件: banner.py 项目: jwbober/sagelib
def banner_text():
    """
    Text for the Sage banner.

    INPUT:
        None
        
    OUTPUT:
        string containing the banner message

    EXAMPLES:
        sage: print sage.misc.banner.banner_text()
        ----------------------------------------------------------------------
        | Sage Version ..., Release Date: ...                  |
        | Type notebook() for the GUI, and license() for information...
    """
    bars = "-"*70
    s = bars 
    s += "\n| %-66s |\n"%version()
    s += "| %-66s |\n"%'Type notebook() for the GUI, and license() for information.'    
    #s += "| %-66s |\n"%'Distributed under the GNU General Public License V2.'
    s += bars
    pre = version_dict()['prerelease']
    if pre:
        s += '\n'
        s += bars.replace('-', '*')
        s += "\n* %-66s *\n"%''
        s += "* %-66s *\n"%'Warning: this is a prerelease version, and it may be unstable.'
        s += "* %-66s *\n"%''
        s += bars.replace('-', '*')
    return s
示例#2
0
文件: banner.py 项目: bgxcpku/sagelib
def banner_text():
    """
    Text for the Sage banner.

    INPUT:

    None
        
    OUTPUT:

    A string containing the banner message.

    EXAMPLES::

        sage: print sage.misc.banner.banner_text()
        ----------------------------------------------------------------------
        | Sage Version ...
    """
    bars = "-"*70
    s = bars
    s += "\n| %-66s |\n"%version()
    s += "| %-66s |\n"%'Type "notebook()" for the browser-based notebook interface.'
    s += "| %-66s |\n"%'Type "help()" for help.'
    #s += "| %-66s |\n"%'Distributed under the GNU General Public License V2.'
    s += bars
    pre = version_dict()['prerelease']
    if pre:
        s += '\n'
        s += bars.replace('-', '*')
        s += "\n* %-66s *\n"%''
        s += "* %-66s *\n"%'Warning: this is a prerelease version, and it may be unstable.'
        s += "* %-66s *\n"%''
        s += bars.replace('-', '*')
    return s
示例#3
0
def banner_text():
    """
    Text for the Sage banner.

    INPUT:
        None
        
    OUTPUT:
        string containing the banner message

    EXAMPLES:
        sage: print sage.misc.banner.banner_text()
        ----------------------------------------------------------------------
        | Sage Version ..., Release Date: ...                  |
        | Type notebook() for the GUI, and license() for information.        |
        ----------------------------------------------------------------------
    """
    bars = "-"*70
    s = bars 
    s += "\n| %-66s |\n"%version()
    s += "| %-66s |\n"%'Type notebook() for the GUI, and license() for information.'    
    #s += "| %-66s |\n"%'Distributed under the GNU General Public License V2.'
    s += bars
    return s