-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1st ver #47
base: master
Are you sure you want to change the base?
1st ver #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
советую больше внимания уделять неймингу, это прям важная хрень
например в 1 задании имя one_day лучше будет передавать смысл переменной delta
ну и для days_30 тоже можно придумать лучшее имя
кстати, только сейчас заметил, что PR сделан в основной репозиторий
@@ -7,22 +7,25 @@ | |||
2. Превратите строку "01/01/20 12:10:03.234567" в объект datetime | |||
|
|||
""" | |||
import datetime as dt | |||
from datetime import timedelta | |||
|
|||
|
|||
def print_days(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
yesterday = today - delta | ||
days_30 = today - 30*delta | ||
|
||
print(today, yesterday, days_30) | ||
|
||
|
||
def str_2_datetime(date_string): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: skeapskeap <[email protected]>
No description provided.