这是使用java为普通事件创建.ics
文件的示例代码。
Calendar calendar = new Calendar();
calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN"));
calendar.getProperties().add(Version.VERSION_2_0);
calendar.getProperties().add(CalScale.GREGORIAN);
java.util.Calendar cal = java.util.Calendar.getInstance();
cal.set(java.util.Calendar.MONTH, java.util.Calendar.DECEMBER);
cal.set(java.util.Calendar.DAY_OF_MONTH, 25);
// initialise as an all-day event..
VEvent christmas = new VEvent(new Date(cal.getTime()), "Christmas Day");
// Generate a UID for the event..
UidGenerator ug = new UidGenerator("1");
christmas.getProperties().add(ug.generateUid());
calendar.getComponents().add(christmas);
ServletOutputStream fout = response.getOutputStream();
CalendarOutputter outputter = new CalendarOutputter();
outputter.output(calendar, fout);
答案 0 :(得分:0)
让我们说你的重复模式是
b1 = sns.boxplot(data = df_melt,
hue = 'cls',
x = 'value',
y = 'columns',
order = ['sensitivity', # custom order of boxplots
'specificity',
'accuracy',
'ppv',
'auc'],
orient = 'h')
sns.plt.title('Boxplot grouped by cls')
plt.show()
然后您可以通过这种方式在当前事件中添加重复信息。
String recurrencePattern = "FREQ=MONTHLY;INTERVAL=1;BYDAY=SU;BYSETPOS=1;COUNT=5"