我创建了一个函数language
,它返回English
或{French
,函数将返回Jeudi, 28 mars 2017
,或者如果我选择English
,它将返回Tuesday March 28 2017
。在
@property
def date_customerprofile(self):
now = datetime.date.today()
if language == 'English'
date = now.strftime("%A, %B %d %Y")
else:
date = ...
有谁能帮我完成这个功能得到这样的结果吗?在
谢谢!在
p.S.知道法语中的月份是Janvier
、Février
、Mars
、Avril
、Mai
、Juin
、Juillet
、Août
、Septembre
、Octobre
、Novembre
和{Dimanche
(星期日),Lundi
,Mardi
,Mercredi
,Jeudi
,Vendredi
和{
首先,您需要在系统上安装所需的区域设置。 要想让ubuntu安装法语语言环境,请运行下面的命令。在
下面是问题的解决方案
^{pr2}$注意:避免使用标准包/函数名作为变量
相关问题 更多 >
编程相关推荐