zoukankan      html  css  js  c++  java
  • 作业

    1.

    2.print("-" * 8,"info of Egon", "-" * 8)
    name = input('Name:')
    age = input('Age: ')
    sex = input('Sex: ')
    job = input('Job: ')
    print("-" * 8,"end", "-" * 8)

    3.inp_name = 'liu'
    inp_pwd = '123'
    inp_name = input('请输入你的账号:')
    inp_pwd = input('请输入你的密码:')
    if inp_name == 'liu' and inp_pwd == '123':
    print('True')
    else:
    print('False')

    4.egon = input('请猜egon的年龄:')
    egon = int(egon)
    if egon > 18:
    print('你猜大了')
    elif egon < 18:
    print('你猜小了')
    elif egon == 18:
    print('恭喜你猜对了')

    5.x=y=z=10

    6.dsb='egon'
    superman='alex'
    dsb, superman = superman, dsb
    7.(mon0,mon1,mon2,mon3,mon4,mon5) = names
    res = names
    print(res)

    8.inp_name=input('请输入你的姓名')
    if inp_name == 'egon':
    print("-->超级用户")
    elif inp_name == 'tom':
    print('-->普通管理员')
    elif inp_name == 'jake' or 'rain':
    print('-->业务主管')
    else:
    print('-->普通用户')
    9.what_day=input('今天是星期几')
    if what_day == 'monday':
    print('上班')
    elif what_day == 'tuesday':
    print('上班')
    elif what_day == 'wednesday':
    print('上班')
    elif what_day == 'thursday':
    print('上班')
    elif what_day == 'friday':
    print('上班')
    else:
    print('出去浪')

  • 相关阅读:
    pandas Dataframe filter
    process xlsx with pandas
    data manipulate in excel with easyExcel class
    modify registry in user environment
    add number line in vim
    java import webservice
    ctypes MessageBoxA
    music 163 lyrics
    【python实例】自动贩卖机
    【python基础】sys模块(库)方法汇总
  • 原文地址:https://www.cnblogs.com/lgh8023/p/13045416.html
Copyright © 2011-2022 走看看