ats-min.com

Just another programmer's site

Month: 6月 2015

CheckIO: Feed Pigeons

 http://www.checkio.org/mission/feed-pigeons/

CheckIO: Pawn Brotherhood

http://www.checkio.org/mission/pawn-brotherhood/

CheckIO: Speech Module

https://www.checkio.org/mission/speechmodule/

Python: Exchange rows and columns

 

CheckIO: Xs and Os Referee

http://www.checkio.org/mission/x-o-referee/

CheckIO: The Most Wanted Letter

http://www.checkio.org/mission/most-wanted-letter/

Python: datetime.today()

datetime.today() does’t return today’s date only but today’s datetime. And using datetime.combine, date object can be converted to datetime.

 

 

Python: calculate weeks or months

 stackoverflow.com/questions/42950/get-last-day-of-the-month-in-python

Django: copy model instance

To copy model instance, replacing pk value is the easiest way.

http://stackoverflow.com/questions/4733609/how-do-i-clone-a-django-model-instance-object-and-save-it-to-the-database

© 2018 ats-min.com

Theme by Anders NorenUp ↑