{"action":"created","comment":{"url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments/58090445","id":58090445,"diff_hunk":"@@ -0,0 +1,24 @@\n+# 作業 004\n+\n+* 1.profile = {name:'kk', age: 18}，請問：\n+* p profile[\"name\"]\n+* 會得到什麼結果? 為什麼?\n+```\n+nil，因為『name』只是個字串而已根本找不到，所以取不到hash的key和value。\n+```\n+* 2.請寫一段 Ruby 程式，讀取檔案 homework-03-31-content.txt 的內容，在每一行的前面加上行號，像這樣：\n+```\n+result=\"\"\n+list = 0\n+File.open(\"homework-03-31-content.txt\") do |f|\n+f.each_line do |line|\n+print list+=1\n+puts result+= \"#{list} #{line}\"","path":"10436028/homework-2016-03-31.md","position":16,"original_position":16,"commit_id":"2d716706b3929e4e1a953ad3acd5e9988015a479","original_commit_id":"2d716706b3929e4e1a953ad3acd5e9988015a479","user":{"login":"kaochenlong","id":33090,"avatar_url":"https://avatars.githubusercontent.com/u/33090?v=3","gravatar_id":"","url":"https://api.github.com/users/kaochenlong","html_url":"https://github.com/kaochenlong","followers_url":"https://api.github.com/users/kaochenlong/followers","following_url":"https://api.github.com/users/kaochenlong/following{/other_user}","gists_url":"https://api.github.com/users/kaochenlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaochenlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaochenlong/subscriptions","organizations_url":"https://api.github.com/users/kaochenlong/orgs","repos_url":"https://api.github.com/users/kaochenlong/repos","events_url":"https://api.github.com/users/kaochenlong/events{/privacy}","received_events_url":"https://api.github.com/users/kaochenlong/received_events","type":"User","site_admin":false},"body":"不需要 puts","created_at":"2016-03-31T17:07:52Z","updated_at":"2016-03-31T17:07:52Z","html_url":"https://github.com/kaochenlong/ntub_homework/pull/207#discussion_r58090445","pull_request_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments/58090445"},"html":{"href":"https://github.com/kaochenlong/ntub_homework/pull/207#discussion_r58090445"},"pull_request":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207","id":64765256,"html_url":"https://github.com/kaochenlong/ntub_homework/pull/207","diff_url":"https://github.com/kaochenlong/ntub_homework/pull/207.diff","patch_url":"https://github.com/kaochenlong/ntub_homework/pull/207.patch","issue_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/207","number":207,"state":"open","locked":false,"title":"homework 0331","user":{"login":"Hsiao-Chin-Liang","id":17468351,"avatar_url":"https://avatars.githubusercontent.com/u/17468351?v=3","gravatar_id":"","url":"https://api.github.com/users/Hsiao-Chin-Liang","html_url":"https://github.com/Hsiao-Chin-Liang","followers_url":"https://api.github.com/users/Hsiao-Chin-Liang/followers","following_url":"https://api.github.com/users/Hsiao-Chin-Liang/following{/other_user}","gists_url":"https://api.github.com/users/Hsiao-Chin-Liang/gists{/gist_id}","starred_url":"https://api.github.com/users/Hsiao-Chin-Liang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hsiao-Chin-Liang/subscriptions","organizations_url":"https://api.github.com/users/Hsiao-Chin-Liang/orgs","repos_url":"https://api.github.com/users/Hsiao-Chin-Liang/repos","events_url":"https://api.github.com/users/Hsiao-Chin-Liang/events{/privacy}","received_events_url":"https://api.github.com/users/Hsiao-Chin-Liang/received_events","type":"User","site_admin":false},"body":"homework-2016-03-31\r\n高老師我繳交第四次作業囉!!!\r\n但是我第三題不太會所以只PR了二題而已@0@|||","created_at":"2016-03-31T10:11:19Z","updated_at":"2016-03-31T17:07:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67880173ce9ae1bd973a52586a0bcc8ffce3c4f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207/commits","review_comments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207/comments","review_comment_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/207/comments","statuses_url":"https://api.github.com/repos/kaochenlong/ntub_homework/statuses/2d716706b3929e4e1a953ad3acd5e9988015a479","head":{"label":"Hsiao-Chin-Liang:homework/2016-03-31","ref":"homework/2016-03-31","sha":"2d716706b3929e4e1a953ad3acd5e9988015a479","user":{"login":"Hsiao-Chin-Liang","id":17468351,"avatar_url":"https://avatars.githubusercontent.com/u/17468351?v=3","gravatar_id":"","url":"https://api.github.com/users/Hsiao-Chin-Liang","html_url":"https://github.com/Hsiao-Chin-Liang","followers_url":"https://api.github.com/users/Hsiao-Chin-Liang/followers","following_url":"https://api.github.com/users/Hsiao-Chin-Liang/following{/other_user}","gists_url":"https://api.github.com/users/Hsiao-Chin-Liang/gists{/gist_id}","starred_url":"https://api.github.com/users/Hsiao-Chin-Liang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hsiao-Chin-Liang/subscriptions","organizations_url":"https://api.github.com/users/Hsiao-Chin-Liang/orgs","repos_url":"https://api.github.com/users/Hsiao-Chin-Liang/repos","events_url":"https://api.github.com/users/Hsiao-Chin-Liang/events{/privacy}","received_events_url":"https://api.github.com/users/Hsiao-Chin-Liang/received_events","type":"User","site_admin":false},"repo":{"id":55138881,"name":"ntub_homework","full_name":"Hsiao-Chin-Liang/ntub_homework","owner":{"login":"Hsiao-Chin-Liang","id":17468351,"avatar_url":"https://avatars.githubusercontent.com/u/17468351?v=3","gravatar_id":"","url":"https://api.github.com/users/Hsiao-Chin-Liang","html_url":"https://github.com/Hsiao-Chin-Liang","followers_url":"https://api.github.com/users/Hsiao-Chin-Liang/followers","following_url":"https://api.github.com/users/Hsiao-Chin-Liang/following{/other_user}","gists_url":"https://api.github.com/users/Hsiao-Chin-Liang/gists{/gist_id}","starred_url":"https://api.github.com/users/Hsiao-Chin-Liang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hsiao-Chin-Liang/subscriptions","organizations_url":"https://api.github.com/users/Hsiao-Chin-Liang/orgs","repos_url":"https://api.github.com/users/Hsiao-Chin-Liang/repos","events_url":"https://api.github.com/users/Hsiao-Chin-Liang/events{/privacy}","received_events_url":"https://api.github.com/users/Hsiao-Chin-Liang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hsiao-Chin-Liang/ntub_homework","description":"","fork":true,"url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework","forks_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/forks","keys_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/teams","hooks_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/hooks","issue_events_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/issues/events{/number}","events_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/events","assignees_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/assignees{/user}","branches_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/branches{/branch}","tags_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/tags","blobs_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/languages","stargazers_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/stargazers","contributors_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/contributors","subscribers_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/subscribers","subscription_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/subscription","commits_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/contents/{+path}","compare_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/merges","archive_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/downloads","issues_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/issues{/number}","pulls_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/labels{/name}","releases_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/releases{/id}","deployments_url":"https://api.github.com/repos/Hsiao-Chin-Liang/ntub_homework/deployments","created_at":"2016-03-31T09:45:41Z","updated_at":"2016-03-31T09:45:43Z","pushed_at":"2016-03-31T10:08:42Z","git_url":"git://github.com/Hsiao-Chin-Liang/ntub_homework.git","ssh_url":"git@github.com:Hsiao-Chin-Liang/ntub_homework.git","clone_url":"https://github.com/Hsiao-Chin-Liang/ntub_homework.git","svn_url":"https://github.com/Hsiao-Chin-Liang/ntub_homework","homepage":null,"size":142,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kaochenlong:homework/2016-03-31","ref":"homework/2016-03-31","sha":"1663c75fe4680224282b324bf5573a52efdda5f7","user":{"login":"kaochenlong","id":33090,"avatar_url":"https://avatars.githubusercontent.com/u/33090?v=3","gravatar_id":"","url":"https://api.github.com/users/kaochenlong","html_url":"https://github.com/kaochenlong","followers_url":"https://api.github.com/users/kaochenlong/followers","following_url":"https://api.github.com/users/kaochenlong/following{/other_user}","gists_url":"https://api.github.com/users/kaochenlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaochenlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaochenlong/subscriptions","organizations_url":"https://api.github.com/users/kaochenlong/orgs","repos_url":"https://api.github.com/users/kaochenlong/repos","events_url":"https://api.github.com/users/kaochenlong/events{/privacy}","received_events_url":"https://api.github.com/users/kaochenlong/received_events","type":"User","site_admin":false},"repo":{"id":53560337,"name":"ntub_homework","full_name":"kaochenlong/ntub_homework","owner":{"login":"kaochenlong","id":33090,"avatar_url":"https://avatars.githubusercontent.com/u/33090?v=3","gravatar_id":"","url":"https://api.github.com/users/kaochenlong","html_url":"https://github.com/kaochenlong","followers_url":"https://api.github.com/users/kaochenlong/followers","following_url":"https://api.github.com/users/kaochenlong/following{/other_user}","gists_url":"https://api.github.com/users/kaochenlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaochenlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaochenlong/subscriptions","organizations_url":"https://api.github.com/users/kaochenlong/orgs","repos_url":"https://api.github.com/users/kaochenlong/repos","events_url":"https://api.github.com/users/kaochenlong/events{/privacy}","received_events_url":"https://api.github.com/users/kaochenlong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaochenlong/ntub_homework","description":"","fork":false,"url":"https://api.github.com/repos/kaochenlong/ntub_homework","forks_url":"https://api.github.com/repos/kaochenlong/ntub_homework/forks","keys_url":"https://api.github.com/repos/kaochenlong/ntub_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaochenlong/ntub_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaochenlong/ntub_homework/teams","hooks_url":"https://api.github.com/repos/kaochenlong/ntub_homework/hooks","issue_events_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/events{/number}","events_url":"https://api.github.com/repos/kaochenlong/ntub_homework/events","assignees_url":"https://api.github.com/repos/kaochenlong/ntub_homework/assignees{/user}","branches_url":"https://api.github.com/repos/kaochenlong/ntub_homework/branches{/branch}","tags_url":"https://api.github.com/repos/kaochenlong/ntub_homework/tags","blobs_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaochenlong/ntub_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/kaochenlong/ntub_homework/languages","stargazers_url":"https://api.github.com/repos/kaochenlong/ntub_homework/stargazers","contributors_url":"https://api.github.com/repos/kaochenlong/ntub_homework/contributors","subscribers_url":"https://api.github.com/repos/kaochenlong/ntub_homework/subscribers","subscription_url":"https://api.github.com/repos/kaochenlong/ntub_homework/subscription","commits_url":"https://api.github.com/repos/kaochenlong/ntub_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaochenlong/ntub_homework/contents/{+path}","compare_url":"https://api.github.com/repos/kaochenlong/ntub_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaochenlong/ntub_homework/merges","archive_url":"https://api.github.com/repos/kaochenlong/ntub_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaochenlong/ntub_homework/downloads","issues_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues{/number}","pulls_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/kaochenlong/ntub_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/kaochenlong/ntub_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaochenlong/ntub_homework/labels{/name}","releases_url":"https://api.github.com/repos/kaochenlong/ntub_homework/releases{/id}","deployments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/deployments","created_at":"2016-03-10T06:16:39Z","updated_at":"2016-03-30T17:22:42Z","pushed_at":"2016-03-31T17:05:00Z","git_url":"git://github.com/kaochenlong/ntub_homework.git","ssh_url":"git@github.com:kaochenlong/ntub_homework.git","clone_url":"https://github.com/kaochenlong/ntub_homework.git","svn_url":"https://github.com/kaochenlong/ntub_homework","homepage":null,"size":299,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":10,"forks":46,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207"},"html":{"href":"https://github.com/kaochenlong/ntub_homework/pull/207"},"issue":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/207"},"comments":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/statuses/2d716706b3929e4e1a953ad3acd5e9988015a479"}}}}