Get date format in Python in Windows
问题 In a sample code given to me for my homework, this line appears: date_format = locale.nl_langinfo(locale.D_FMT) But in Windows that line returns the following error: File "C:\Users\Shadark\Dropbox\IHM\P3\p3_files\www\cgi-bin\todolist.py", line 11, in <module> date_format = locale.nl_langinfo(locale.D_FMT) AttributeError: 'module' object has no attribute 'nl_langinfo' I've read about using localeconv but I only read about it being used currency or numbers. Any idea on uses for the purpose of