Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import datetime
- import colorama
- from colorama import Fore, Back, Style
- from colorama import init
- init()
- import time
- date = datetime.datetime.today().strftime("%d.%m.%Y")
- time = datetime.datetime.today().strftime("%H.%M")
- def qstn():
- question = input("Введите запрос: ")
- if question == "Сколько сейчас времени?":
- print("Сейчас: " + str(time))
- elif question == "Какая сегодня дата?":
- print("Сегодня у нас: " + str(date))
- login = input("Введите логин: ")
- if login == "root":
- print(Fore.GREEN)
- print('Авторизация пройдена на 50%!')
- elif login == "":
- print(Fore.RED)
- print("Поле пустое!")
- raise SystemExit
- else:
- print(Fore.RED)
- print("Неверный логин!")
- raise SystemExit
- password = input("Введите пароль: ")
- if password == "abrakadabra":
- print(Fore.GREEN)
- print("Добро пожаловать!")
- print(Fore.WHITE)
- name = input("Как тебя зовут?: ")
- print("Приятно познакомиться, " + name +"! Я - Джессика! Твой ассистент.")
- question = input("Введите запрос: ")
- if question == "Сколько сейчас времени?":
- print("Сейчас: " + str(time))
- elif question == "Какая сегодня дата?":
- print("Сегодня у нас: " + str(date))
- qstn()
- elif password == "":
- print(Fore.RED)
- print("Поле пустое!")
- raise SystemExit
- else:
- print(Fore.RED)
- print("Неверный пароль!")
- raise SystemExit
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement