from socket import *
import sys

def main():
    if len(sys.argv) < 3:
        print('argv is error')
        return
    HOST = sys.argv[1]
    PORT = int(sys.argv[2])
    s = socket()
    try:
        s.connect((HOST, PORT))
    except Exception as e:
        print(e)
        return

    while True:
        print('''
            =========== Welcome ==========
            -- 1.注册    2.登录    3.退出 --
            ==============================
            ''')
        cmd = input('请输入选项>>')

if __name__ == '__main__':
    main()
57f23656338b79c1c8ec57fe2d62dde12b7e509f
<mask token>

<mask token>


def main():
    if len(sys.argv) < 3:
        print('argv is error')
        return
    HOST = sys.argv[1]
    PORT = int(sys.argv[2])
    s = socket()
    try:
        s.connect((HOST, PORT))
    except Exception as e:
        print(e)
        return
    while True:
        print(
            """
            =========== Welcome ==========
            -- 1.注册    2.登录    3.退出 --
            ==============================
            """
            )
        cmd = input('请输入选项>>')


<mask token>

<mask token>


def main():
    if len(sys.argv) < 3:
        print('argv is error')
        return
    HOST = sys.argv[1]
    PORT = int(sys.argv[2])
    s = socket()
    try:
        s.connect((HOST, PORT))
    except Exception as e:
        print(e)
        return
    while True:
        print(
            """
            =========== Welcome ==========
            -- 1.注册    2.登录    3.退出 --
            ==============================
            """
            )
        cmd = input('请输入选项>>')


if __name__ == '__main__':
    main()

from socket import *
import sys


def main():
    if len(sys.argv) < 3:
        print('argv is error')
        return
    HOST = sys.argv[1]
    PORT = int(sys.argv[2])
    s = socket()
    try:
        s.connect((HOST, PORT))
    except Exception as e:
        print(e)
        return
    while True:
        print(
            """
            =========== Welcome ==========
            -- 1.注册    2.登录    3.退出 --
            ==============================
            """
            )
        cmd = input('请输入选项>>')


if __name__ == '__main__':
    main()

from socket import *
import sys

def main():
    if len(sys.argv) < 3:
        print('argv is error')
        return
    HOST = sys.argv[1]
    PORT = int(sys.argv[2])
    s = socket()
    try:
        s.connect((HOST, PORT))
    except Exception as e:
        print(e)
        return

    while True:
        print('''
            =========== Welcome ==========
            -- 1.注册    2.登录    3.退出 --
            ==============================
            ''')
        cmd = input('请输入选项>>')

if __name__ == '__main__':
    main()