Drkcore

12 01 2010 Python Tweet

pythonで引数渡すとき

昨日よくわからなかったので

d = [2007, 8, 1]
datetime.date(d[0], d[1], d[2])

と書いたのだけど

datetime.date(*d)

でいいのね。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021