Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from datetime import datetime
- class Event:
- def __init__(type, description, occurred=None):
- self.type = type
- self.description = description
- self.occurred = occurred or datetime.now() # вот такое используют
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement