Warning: Undefined array key 1 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 12
Warning: Undefined array key 2 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 15
Warning: Undefined array key 3 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18
Warning: Undefined array key 4 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21
Warning: Undefined array key 1 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 24
Warning: Undefined array key 2 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 27
Warning: Undefined array key 3 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30
Warning: Undefined array key 4 in /home/semtable/teihenai.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33
今回は、pythonで今日の日付を表示する方法について書きます。すばらしく簡単にできました。
ソースコード
import datetime now = datetime.datetime.now() month = now.month day = now.day print(str(month)+'月'+str(day)+'日')
datetimeというライブラリをインポートして、数行書くだけ。簡単すぎる!
はやくTwitterと連携したいのですが、デベロッパーのレビュ待ちです。待ち始めてから、3日間が過ぎました。承認され次第、Twitterに自動でツイートできるようにしたいと思います。
おーわり