コード例 #1
0
from uberX import UberX
from uberPool import UberPool
from uberBlack import UberBlack
from uberSUV import UberSUV
from account import Account

if __name__ == "__main__":
    # UBER X
    uberX = UberX("ADF875", Account("Felipe López", "GSG458"), "Chevrolet",
                  "Spark")
    print(vars(uberX))
    print(vars(uberX.driver))

    # UBER POOL
    uberPool = UberPool("XCV765", Account("Marti Monteller", "G7WBYF837YHD"),
                        "Ford", "Fiesta")
    print(vars(uberPool))
    print(vars(uberPool.driver))

    # UBER BLACK
    uberBlack = UberBlack("HSH625",
                          Account("Alejandra Tabares", "HSB934HUS953N"),
                          ["Renault Duster"], ["Cuero", "Tela"])
    print(vars(uberBlack))
    print(vars(uberBlack.driver))

    # UBER SUV
    uberSUV = UberSUV("JKS098", Account("Juan Londoño", "LKDS89KLMSD6"),
                      ["Tesla Model X"], ["Cuero"])
    print(vars(uberSUV))
    print(vars(uberSUV.driver))
コード例 #2
0
ファイル: main.py プロジェクト: Axely7/POO
from car import Car
from account import Account
from uberX import UberX
from user import User
from driver import Driver

if __name__ == "__main__":
    print("Heeey")

    car = Car("AMS234", Account("Jackson", "1234FJFM"))
    print(vars(car))
    print(vars(car.driver))

    uberX = UberX("QWRT", Account("Valeria", "141pjjo"), "Chevrolet", "Spark")
    print(vars(uberX))
    print(vars(uberX.driver))

    #Imprimiendo a objeto usuario:

    user1 = User("Carolina", "jkmi", 487, "*****@*****.**", "yisuscrist")
    print(vars(user1))

    #Imprimiendo a objeto driver:

    driver1 = Driver("Abner", "JMIL", 1996, "*****@*****.**",
                     "cuadrovlogs")
    print(vars(driver1))

    #El código de abajo es cuando no se crea el método constructor de manera explícita

    #car = Car() #Nombre_de_objeto = Nombre_del método_constructor(que tiene el mismo nombre que la clase)
コード例 #3
0
from car import Car
from account import Account
from uberX import UberX

if __name__ == "__main__":
    print("Hola mundo en python")
    # car = Car("ABC123", Account("Andres Res", "DEF456"))
    # print(vars(car))
    # print(vars(car.driver))

    print("Uber x")
    uberX = UberX("DEF789", Account("Andres repo", "DEF456"), "Ford", "Fiesta")
    print(vars(uberX))
    print(vars(uberX.driver))

    #Comentario simple
    """ Comentario Complejo """
    """
    #antigua inicializacion
    car = Car()
    car.license = "AMB747"
    car.driver = "Salem Miaunster"
    car.passengers = 3
    print(vars(car))

    carTwo = Car()
    carTwo.license = "ZSD789"
    carTwo.driver = "Pandora Miaunster"
    carTwo.passengers = 5
    print(vars(carTwo))
    """
コード例 #4
0
from car import Car
from account import Account
from uberX import UberX
if __name__ == "__main__":
    print("Hello World")
    car = Car("AMS234", Account("Andres Herrera", "ANDA876"))
    print(vars(car))

    uberX = UberX("AMG543", Account("Juan Perez", "JPR123"), "Chevrolet",
                  "Aveo")
    print(vars(uberX))
コード例 #5
0
ファイル: main.py プロジェクト: roxanaisadora/analysis_uber
from car import Car
from account import Account
from uberX import UberX
from user import User

if __name__ == "__main__":
    print("Inicializando las info de los carros")
    print("Car")
    car = Car(
        "AMS256",
        Account("Andres Herrera", "ASD12365", "*****@*****.**", "2563"))
    print(vars(car))
    print(vars(car.driver))

    print("UberX")
    uberX = UberX(
        "KLO365", Account("Marco Lois", "SGHJ1236", "*****@*****.**",
                          "7856"), "Toyota", "Corolla")
    print(vars(uberX))
    print(vars(uberX.driver))

    print("User")
    user = User("mariana Valle", "SDFG125F", "*****@*****.**", "7856")
    print(vars(user))
コード例 #6
0
# from car import Car
from uberX import UberX
from account import Account
from payment import Payment
from tarjeta import Tarjeta

if __name__ == "__main__":

    car1 = UberX("AMS354", Account(
        "Andres Herrera", "AND876"), "Ford", "Fiesta")
    car2 = UberX("AMS354", Account(
        "Andres Surriaga", "AND576"), "Chevrolet", "Spark")
    car2.set_passenger = 50
    card = Tarjeta(1, "343434", 123, "23/10/2020")

    print(vars(car1))
    print(vars(car2))
    # car2.set_passenger = 4
    print(car2.get_passenger)
    print(vars(card))
    print(card.number)
コード例 #7
0
from uberCar import UberCar
from user import User
from uberX import UberX
from card import Card
if __name__ == "__main__":

    uberDriver = User("Fernando Lagunes", "INE")
    mazda = UberCar("JDU394", uberDriver)
    print(vars(mazda.driver))

    Jetta = UberX("UWJ810", uberDriver, "VolksWagen", "2003")
    print(vars(Jetta))

    ferPayment = Card(82.32, "3333333333333", "", "")
    print(vars(ferPayment))
コード例 #8
0
from account import Account
from car import Car
from uberBlack import UberBlack
from uberPool import UberPool
from uberVan import UberVan
from uberX import UberX

if __name__ == "__main__":
    print("hello world")

    car = Car("AMS235", Account("Andres Herrera", "ANDA876"))
    print(vars(car))
    print(vars(car.driver))

    uberX = UberX("AKSD", Account("Angie", 12356), "Chevrolet", "Spark")
    print(vars(uberX))
    print(vars(uberX.driver))
コード例 #9
0
ファイル: main.py プロジェクト: jsebasdm/AppUberPOO
from uberX import UberX
from uberPool import UberPool
from driver import Driver

if __name__ == "__main__":

    uberX = UberX("AMD123", Driver("Sebas", "12345JSD"), "Bentley", "Bentayga")
    uberPool = UberPool("ABC777", Driver("Alejo", "9876AGD"), "BMW",
                        "1-series")
    print(vars(uberX))
    print(vars(uberX.driver))
    print(vars(uberPool))
    print(vars(uberPool.driver))
コード例 #10
0
from car import Car
from account import Account
from uberX import UberX

if __name__ == '__main__':
    print("Hola mundo")
    car = Car("SAE121", Account("Andres Herrera", "FAFS454"))
    print(vars(car))
    uberX = UberX("KJKF12", Account("Camilo Garcia", "1233"), "Cheverolet",
                  "Boldo")
    print(vars(uberX))
コード例 #11
0
from car import Car
from account import Account
from uberX import UberX

if __name__ == '__main__':
    print('Hola Mundo')
    car = Car("MHL3241", Account("Erick Candela", "Licencia"))
    print(vars(car))
    print(vars(car.driver))

    car2 = Car("POK6532", Account("Kirin Koron", "INE"))
    print(vars(car2))
    print(vars(car2.driver))

    uberX = UberX("GPF3456", Account("Erick Arana", "INE"), "Dodge", "RAM")
    print(vars(uberX))
    print(vars(uberX.driver))
コード例 #12
0
from car import Car #Traer la clase
from uberX import UberX
from account import Account
if __name__ == "__main__":
    print ("hola mundo")
    uberX = UberX("Ams234", Account ("Andres Herrera", "ANDA876"), "Chevrolet", "Sonic")
    print(vars(uberX)) #Traer todos los atributos de alguna clase al main
    print(vars(uberX.driver))
コード例 #13
0
from car import Car
from payment import Payment
from account import Account
from uberPool import UberPool
from uberX import UberX
from uberVan import UberVan
from uberBlack import UberBlack
from cash import Cash
from card import Card
from paypal import Paypal
from driver import Driver
from user import User

if __name__ == "__main__":
    print("Hola mundo")
    car = Car("AMS234", Account("Andres Herrera", "NPI1234"))
    print(vars(car))
    print(vars(car.driver))

    car2 = Car("QWY654", Account("Manuel Carmona", "NPI5678"))
    print(vars(car2))
    print(vars(car2.driver))

    uberX = UberX("YTG78I", Account("Melende Melona", "NPI90765"), "Chevrolet",
                  "Onix")
    print(vars(uberX))
    print(vars(uberX.driver))
コード例 #14
0
from car import Car
from account import Account
from uberX import UberX

if __name__ == "__main__":

    car = UberX("JDI786", Account("Andrés Herrera", "IP3534554"), "Chevrolet",
                "Spark")
    print(vars(car))