Relative Content

Tag Archive for python-3.x

Is this function correct

import MT5Manager # Create a ManagerAPI object manager = MT5Manager.ManagerAPI() # Connect to the MT5 terminal manager.Connect(“localhost”, 443, “admin”, “password”, MT5Manager.ManagerAPI.EnPumpModes.PUMP_MODE_FULL) # Create a new user new_user = manager.CreateUser( username=”newuser”, password=”newpassword”, group=”users”, email=”[email protected]”, phone=”1234567890″, country=”Country”, city=”City”, address=”Address” ) # Print the login of the newly created user print(new_user.Login) # Disconnect from the MT5 terminal manager.Disconnect() […]

Is this function correct

import MT5Manager # Create a ManagerAPI object manager = MT5Manager.ManagerAPI() # Connect to the MT5 terminal manager.Connect(“localhost”, 443, “admin”, “password”, MT5Manager.ManagerAPI.EnPumpModes.PUMP_MODE_FULL) # Create a new user new_user = manager.CreateUser( username=”newuser”, password=”newpassword”, group=”users”, email=”[email protected]”, phone=”1234567890″, country=”Country”, city=”City”, address=”Address” ) # Print the login of the newly created user print(new_user.Login) # Disconnect from the MT5 terminal manager.Disconnect() […]

Python practice sqrt

i wrote a code and it works correctly but the mentor gave me 0!!!! look at this problem:

Python metaclass keyword arguments not getting used by subclass

I am trying to write a metaclass to assist in serialization. The intention of the metaclass was to isolate the production code from the serialization mode (e.g. YAML or JSON) as much as possible. So, things could inherit from the class Serializable, and not have to worry (too much) about whether it was going to be serialized as YAML or JSON.