demo_datetime_strftime_percent.py:
x = datetime.datetime.now() print(x.strftime("%%"))
➜ begtut>python demo_datetime_strftime_percent.py
%