Pythonの関数での等価な実装は次のとおりです。

python

from datetime import datetime

def current_date():
    now = datetime.now()
    return now.strftime("%B %d, %Y")
Here's an equivalent implementation of the function in Python:

python

from datetime import datetime

def current_date():
    now = datetime.now()
    return now.strftime("%B %d, %Y")