python decimal hour datetime.datetime.now().strftime('%-I') error invalid format string

后端 未结 0 1596
梦毁少年i
梦毁少年i 2020-12-08 11:48

when I try to print decimal hour with strftime(\'%-I\') in python it causes an error

but when I try to print \'0 padded string\' it\'s working perfectly

only d

相关标签:
回答
  • 消灭零回复
提交回复
热议问题