{"image_url":null,"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","categories":[],"url":"https://blog.kyanny.me/entry/2020/12/03/113108","title":"Python: with \u69cb\u6587","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2020%2F12%2F03%2F113108\" title=\"Python: with \u69cb\u6587 - @kyanny&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","published":"2020-12-03 11:31:08","author_name":"a666666","type":"rich","description":"reiki4040.hatenablog.com \u8981\u306f Ruby \u306e\u30d6\u30ed\u30c3\u30af\u3068\u540c\u3058\u3088\u3046\u306a\u3082\u306e\u3001\u3068\u3044\u3046\u7406\u89e3\u3067\u826f\u3055\u305d\u3046\u3002 Python with open('/etc/passwd') as f: print(f.read()) Ruby open('/etc/passwd') do |f| puts f.read end open \u4ee5\u5916\u306e\u4f8b\u3068\u3057\u3066\u306f unittest \u306e assertRaises \u304c\u3042\u308b\u3002 unittest --- \u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af \u2014 Python 3.9.1rc1 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 import unittest class TestFoo(unittest.Test\u2026","author_url":"https://blog.hatena.ne.jp/a666666/","blog_url":"https://blog.kyanny.me/","blog_title":"@kyanny's blog"}