This is the part that used to test the python slice problem.
The Python standard library includes data types for date
and time data
, as well as calendar-related functionality
. The datetime
, time
, and calendar modules
are the main places to start. The datetime.datetime type, or simply datetime, is widely use.
# Python切片功能示例
from datetime import datetime
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import matplotlib.pyplot as plt
// Python切片功能示例
now = datetime.now()
now
now.year, now.month, now