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('出去浪')

  • 相关阅读:
    linux 计划任务
    linux 进程管理
    PHP中global与$GLOBALS['']的区别
    php预定义变量
    linux 强制终止进程命令
    mysql取某表中数据的随机的方法
    mysql 连接 选库 查询
    Python 的异步 IO:Asyncio 简介
    并发和并行的区别
    asyncio模块中的Future和Task
  • 原文地址:https://www.cnblogs.com/lgh8023/p/13045416.html
Copyright © 2011-2022 走看看