是否可以将本地设置为 Convert Date
${today}= Get Time ${today_s}= Convert Date ${today} result_format=%A %d %B
4月4日星期四
玛迪04艾薇儿
使用变通方法进行编辑:
*** Settings *** Library SeleniumLibrary Library Collections *** Variables *** &{day_of_week_collections} Monday=Lundi Thursday=Mardi Wednesday=Mercredi Thursday=Jeudi Friday=Vendredi Saturday=Samedi Sunday=Dimanche &{month_collections} January=Janvier February=Février March=Mars April=Avril May=Mai June=Juin July=Juillet August=Août September=Septembre October=Octobre November=Novembre December=Décembre ${day_of_week}= Convert Date ${next_week} result_format=%A ${day_of_week_fr}= Get From Dictionary ${day_of_week_collections} ${day_of_week}
我能用计算机得到法语成绩 locale python中的库:
Evaluate locale.setlocale(locale.LC_ALL, 'french') locale ${today}= Get Time ${today_s}= Convert Date ${today} result_format=%A %d %B
${today_s}= Evaluate """${today_s}""".title()