我有一个电子表格,我想部分包含在显示特定总数的HTML电子邮件中。我不确定如何实现Pandas表。我有:
Enum.Parse
我想以某种方式在HTML电子邮件中实现这一点,通知用户表中存在多少个。因为这总是在变化,所以这些值永远不会是相同的数量(但它们将始终是“被放弃”或“活动”)。
item.Action = (legende)Enum.Parse(typeof(legende), "2");
有效,但我不确定如何将其转换成可以在HTML电子邮件中解析的内容。有没有办法拉出每个状态字段的值并将它们附加到列表或其他内容,以便我可以使用Status
Abandoned
Abandoned
Abandoned
Active
Abandoned
作为该列中显示值的总次数?
答案 0 :(得分:1)
使用df.to_html()
返回html表格元素
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/* function prototypes */
int iterGCD(int x, int y);
int recGCD(int x, int y);
int main(int argc, char *argv[])
{
int num_vals = 6;
int x_vals[] = {3, 9, 12, 36, 1, 105};
int y_vals[] = {3, 21, 18, 27, 12, 91};
int i = 0;
printf("Assignment 2 Problem 2 by <Jonathan Taylor>.\n\n");
while (i<num_vals)
{
printf("Iterative GCD: x = %d, y = %d, result = %d\n", x_vals[i], y_vals[i], iterGCD(x_vals[i],y_vals[i]));
printf("Recursive GCD: x = %d, y = %d, result = %d\n\n", x_vals[i], y_vals[i], recGCD(x_vals[i],y_vals[i]));
i++;
}
return 0;
}
int iterGCD(int x, int y)
{
int GCD = 1;
int number = 1;
/*For loop method, you could ignore if you like
for (number = 1; number <= x && number <= y; ++number){
if(x % number == 0 && y % number == 0){
GCD = number;
}
*/
while ((number <= x) && (number <= y)) {
++number;
if(x % number == 0 && y % number == 0) {
GCD = number;
}
return GCD;
}
}
int recGCD(int x, int y)
{
if(y != 0){
int remainder = x % y;
return recGCD(y, remainder);
}
return x;
}