コード例 #1
0
ファイル: hi.py プロジェクト: retep-mathwizard/hello
def print_color(word):
    """Print hello world to the console forever"""
    try:
        print(c.clear)
        while True:
            print(c.rc() + "Hello " + c.rc() + word + c.x,end = " ")
    except KeyboardInterrupt:
        print(c.clear)
        exit()
コード例 #2
0
ファイル: hi.py プロジェクト: retep-mathwizard/hello
def print_helloloop(word):
    """prints hello world in a loop"""
    try:
        print(c.clear)
        while True:
            print(c.rc() + "Hello " + c.rc() + word)

    except KeyboardInterrupt:
        print(c.clear)
        exit()
コード例 #3
0
ファイル: hello.py プロジェクト: ninjamuffin10111/hello-1
def print_color(message):
    """Fills the screen with randomly colored <message>s.
    
    Args:
        message (str): message to print 

    """
    print(c.clear)
    while True:
        print(c.rc() + message + c.reset, end=" ")
コード例 #4
0
ファイル: hello.py プロジェクト: ninjamuffin10111/hello-1
def print_color(message):
    """Fills the screen with randomly colored <message>s.
    
    Args:
        message (str): message to print 

    """
    print(c.clear)
    while True:
        print(c.rc() + message + c.reset, end=" ")
コード例 #5
0
ファイル: hello.py プロジェクト: smokiemario/hello
def print_strawberry(message):
    while True:
        buf = ""
        for character in message:
            color = [
                c.red,
                c.base03,
                c.g,
                c.r
                ]
            buf += c.rc() + random.choice(color) + character
        print(buf, end=" ")
コード例 #6
0
ファイル: hello.py プロジェクト: smokiemario/hello
def print_merica(message):
    while True:
        buf = ""
        for character in message:
    #for word in message.split():
            color = [
                c.red,
                c.blue,
                c.base3
                ]
           
            buf += c.rc() + random.choice(color) + character
        print(buf, end=" ")
コード例 #7
0
ファイル: hi.py プロジェクト: retep-mathwizard/hello
def print_plain(word):
    """clears screen and prints it 1x"""
    try:
        print(c.clear + c.rc() + word + c.reset)
    except KeyboardInterrupt:
        exit()
コード例 #8
0
ファイル: hello.py プロジェクト: andersconn/hello
def print_color(message):
    """Prints hello in color"""
    print(c.clear)
    while True:
        print(c.rc() + message + c.reset, end=" ")
コード例 #9
0
ファイル: hello.py プロジェクト: lavakiller123/hello
def nyan(message):
    """print hello world in nyan"""
    while True:
        print(c.rc() + message, end= " ")
コード例 #10
0
ファイル: lelstuff.py プロジェクト: betropper/hello
def nyan(message):
    "Nyan-esque message"
    print(c.clear)
    while True:
        print(c.rc() + message, end = " ")
コード例 #11
0
ファイル: lelstuff.py プロジェクト: betropper/hello
def plain(message):
    "Normal message"
    print(c.clear + c.rc() + message + c.reset)
コード例 #12
0
ファイル: lelstuff.py プロジェクト: betropper/hello
def ayylmao():
    "ayy lmao"
    print(c.clear + c.rc() + "ayy..")
    t.sleep(1)
    while True:
        print(c.rc() + "LMAO", end = "")
コード例 #13
0
ファイル: hello.py プロジェクト: smokiemario/hello
def print_ascii(who):
    print(c.rc() + """
    |     |    |---   |      |       |---|  |
    |-----|    |---   |      |       |   |  |
    |     |    |---   |----  |----   |---|  O
    """ + who)
コード例 #14
0
ファイル: hello.py プロジェクト: MrCleanSpleen/hello
def print_forever(message):
    """Prints Hello World in random colors all over the screen"""
    print(c.cl)
    while True:
        print(c.rc() + message + c.reset, end = " ")
コード例 #15
0
ファイル: hello.py プロジェクト: calispotato/hello
def random(message):
    """Prints hello world in pretty colors"""
    while True:
        print(c.clear + c.rc() + (message))
コード例 #16
0
ファイル: hello.py プロジェクト: tslnc04/hello
def print_color(message):
    print(c.cl, end="")
    while True:
        print(c.rc() + message + c.x, end=" ")
コード例 #17
0
ファイル: helloworld.py プロジェクト: iamdurza/hello
def print_plain(message):
    '''Clears the screen & says 'Hello World'.'''
    print(c.clear + c.rc() + message + c.reset)
コード例 #18
0
ファイル: helloworld.py プロジェクト: iamdurza/hello
def print_colored(message):
    '''Prints like nyan.'''
    print(c.clear)
    while True:
        print(c.rc() + message + c.x, end=" ")
コード例 #19
0
ファイル: hello.py プロジェクト: smokiemario/hello
def print_plain(message):
    print(c.cl + c.rc() + message + c.reset)
コード例 #20
0
ファイル: hello.py プロジェクト: MrCleanSpleen/hello
def print_color(message):
    """Prints hello World in a random color"""
    print(c.cl + c.rc() + message + c.x)
コード例 #21
0
ファイル: hello.py プロジェクト: thetbsi/hello
def print_nyan(message):
    """Prints <message> forever"""
    while True:
        print(c.rc() + message , end=" ")
コード例 #22
0
ファイル: .py プロジェクト: wylie15/hello
def print_forever(message):
    while True:
          print(c.rc() + message)
コード例 #23
0
ファイル: hello.py プロジェクト: thetbsi/hello
def print_color(message):
    """Prints hello in a random color each time"""
    print(c.rc() + message + "!" + c.reset)