zoukankan      html  css  js  c++  java
  • 简单导出数据csv的随机邮箱

      List<string> list = new List<string>();
            Random rand = new Random();
            for (int i = 0; i < 1000; i++)
            {
                string Vchar = "0,1,2,3,4,,C,D,E,F,G,H,I,5,6,7,8,9,A,BJ,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
                string[] VcArray = Vchar.Split(',');
                string checkCode = string.Empty;
               
                for (int j = 0; j < 4; j++)
                {
                    int t = rand.Next(1, 34);
                    checkCode += VcArray[t];
                }
                string m =checkCode.ToLower()+ FW.Common.Utility.GetRandomNum(3) + checkCode.ToLower() + "163.com";
                list.Add(m);
                //Response.Write(m+"\n");
            }
            this.Response.ContentType = "text/csv";
            this.Response.ContentEncoding = Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
            Response.Expires = 0;
            Response.AddHeader("content-disposition", "attachment; filename=coupon" + DateTime.Now.ToString("yyyyMMddHHmm") + ".csv");
            this.Response.Write("商品编号,评价人帐号,评价标题,评价内容,商品评价星,配送评价星,客服评价星,评价时间\n");
            foreach (string coupon in list)
            {
                this.Response.Write(","+coupon + "\n");
            }
         
    
  • 相关阅读:
    hdu5441Travel【并查集】
    笔试题 brotherword【tire || hash】
    20150917
    字典树模板
    三维凸包模板
    HUST1341A Simple Task【模拟】
    hust1350Trie【字典树+dfs || 字典树 + LCA】
    kmp笔试题。。
    poj3461Oulipo【kmp】
    【转帖】如何看外文文献
  • 原文地址:https://www.cnblogs.com/gylspx/p/asddddddsdqe.html
Copyright © 2011-2022 走看看