demo_datetime_strftime_percent.py:
x = datetime.datetime.now() print(x.strftime("%%"))
C:\Users\My Name>python demo_datetime_strftime_percent.py
%