python date of the previous month

前端 未结 12 1387
耶瑟儿~
耶瑟儿~ 2020-11-29 17:05

I am trying to get the date of the previous month with python. Here is what i\'ve tried:

str( time.strftime(\'%Y\') ) + str( int(time.strftime(\'%m\'))-1 )
<         


        
12条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 17:36

    If you want to look at the ASCII letters in a EXE type file in a LINUX/UNIX Environment, try "od -c 'filename' |more"

    You will likely get a lot of unrecognizable items, but they will all be presented, and the HEX representations will be displayed, and the ASCII equivalent characters (if appropriate) will follow the line of hex codes. Try it on a compiled piece of code that you know. You might see things in it you recognize.

提交回复
热议问题