我想使用“良好”(绿色)颜色代码对我的闲置邮件进行颜色编码。我正在将python #include <stdio.h>
int main()
{
// write your code here
int year[10], i,n;
printf("enter no of test cases");
scanf("%d",&n);
printf("\nenter a year:");
for(i=0;i<n;i++)
{
scanf("%d",&year[i]);
}
for(i=0;i<n;i++)
{
if(year[i]%4==0){
if(year[i]%100 == 0){
if( year[i]%400 == 0){
printf("%d Yes",year[i]);
}
else {
printf("\n%d No",year[i]);
}
}
else {
printf("\n%d Yes", year[i]);
}
}
else {
printf("\n%d No",year[i]);
}
}
return 0;
}
模块与“传入的webhooks”结合使用。
我没有运气就尝试了以下方法:
try1:
notifiers
try2:
from notifiers import get_notifier
slack = get_notifier('slack')
slack._schema['properties']['attachments']['items']['properties']['color'] = 'good'
return slack.notify(message=msg,
webhook_url=slack_bot_url)
有什么主意,我该如何使用通知程序模块将颜色编码的消息发送到松弛状态?
资源: