{
  "id": 35671,
  "title": " Your submission scored 0.00000   Why?",
  "url": "/competitions/digit-recognizer/discussion/35671",
  "author_name": "bmexue",
  "post_date": "2017-07-03T11:03:27.958000",
  "votes": 0,
  "comment_count": 3,
  "views": null,
  "content": "<p>i use the code to wirte    thanks\ndef saveResult(result):\n    with open('result3.csv','wb') as myFile: <br>\n        myWriter=csv.writer(myFile)\n        tmpl=['ImageId','Label']\n        myWriter.writerow(tmpl)\n        line = 1;\n        for i in result:\n            tmp = []\n            tmp.append(line)\n            tmp.append(i)\n            line = line + 1\n            myWriter.writerow(tmp)\n        myFile.close()</p>",
  "messages": [
    {
      "id": 199227,
      "postDate": "2017-07-05T01:26:30.023Z",
      "content": "<p>I know.  you should use \"tmp.append(int(i))\" .  Because the type of \"I\" is float,you should change it to integer. </p>",
      "rawMarkdown": "I know.  you should use \"tmp.append(int(i))\" .  Because the type of \"I\" is float,you should change it to integer. ",
      "votes": 1,
      "replies": [
        {
          "id": 199293,
          "postDate": "2017-07-05T07:56:03.017Z",
          "content": "<p>yes, i try this, it is ok.  thanks</p>",
          "rawMarkdown": "yes, i try this, it is ok.  thanks",
          "votes": 1
        }
      ]
    },
    {
      "id": 199226,
      "postDate": "2017-07-05T01:19:48.567Z",
      "content": "<p>I want to know ，too</p>",
      "rawMarkdown": "I want to know ，too"
    },
    {
      "id": 198676,
      "postDate": "2017-07-03T11:03:27.960Z",
      "content": "<p>i use the code to wirte    thanks\ndef saveResult(result):\n    with open('result3.csv','wb') as myFile: <br>\n        myWriter=csv.writer(myFile)\n        tmpl=['ImageId','Label']\n        myWriter.writerow(tmpl)\n        line = 1;\n        for i in result:\n            tmp = []\n            tmp.append(line)\n            tmp.append(i)\n            line = line + 1\n            myWriter.writerow(tmp)\n        myFile.close()</p>",
      "rawMarkdown": "i use the code to wirte    thanks\ndef saveResult(result):\n    with open('result3.csv','wb') as myFile:    \n        myWriter=csv.writer(myFile)\n        tmpl=['ImageId','Label']\n        myWriter.writerow(tmpl)\n        line = 1;\n        for i in result:\n            tmp = []\n            tmp.append(line)\n            tmp.append(i)\n            line = line + 1\n            myWriter.writerow(tmp)\n        myFile.close()"
    }
  ],
  "comments": [
    {
      "id": 199227,
      "author_name": "eason",
      "author_url": "",
      "post_date": "2017-07-05T01:26:30.023000",
      "content": "<p>I know.  you should use \"tmp.append(int(i))\" .  Because the type of \"I\" is float,you should change it to integer. </p>",
      "votes": 1,
      "replies": [
        {
          "id": 199293,
          "author_name": "bmexue",
          "author_url": "",
          "post_date": "2017-07-05T07:56:03.017000",
          "content": "<p>yes, i try this, it is ok.  thanks</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 199226,
      "author_name": "eason",
      "author_url": "",
      "post_date": "2017-07-05T01:19:48.567000",
      "content": "<p>I want to know ，too</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "199227": "I know.  you should use \"tmp.append(int(i))\" .  Because the type of \"I\" is float,you should change it to integer. ",
    "199226": "I want to know ，too",
    "198676": "i use the code to wirte    thanks\ndef saveResult(result):\n    with open('result3.csv','wb') as myFile:    \n        myWriter=csv.writer(myFile)\n        tmpl=['ImageId','Label']\n        myWriter.writerow(tmpl)\n        line = 1;\n        for i in result:\n            tmp = []\n            tmp.append(line)\n            tmp.append(i)\n            line = line + 1\n            myWriter.writerow(tmp)\n        myFile.close()"
  }
}