Pythonでコーディングすることを学ぶ私は、日時が定義されていないというエラーが発生して立ち往生しています。私はコードアカデミーでグーグルで検索しましたが、私のコードが間違っている場所がわかりません...初心者で申し訳ありません。あなたの助けに感謝します。
Instructions:
Print the current date in the form of mm/dd/yyyy.
my code:
import datetime
now = datetime.now()
print now
current_month = now.month
current_day = now.day
current_year = now.year
print str(current_month)+"/"+str(current_day)+"/"+str(current_year)