{"categories":[],"height":"190","image_url":null,"blog_title":"@kyanny's blog","description":"Ruby \u3067\u66f8\u304f\u3068\u304d\u3001\u975e\u5e38\u306b\u3088\u304f\u4f7f\u3046 syntax \u306e\u4e00\u3064\u3002 str = open('/etc/hosts').read if m = str.match(/local/) puts m[0] end \u276f ruby if-assignment-in-conditional.rb local \u6b63\u5f0f\u540d\u79f0\u304c\u308f\u304b\u3089\u305a\u3001\u691c\u7d22\u306b\u82e6\u52b4\u3057\u305f\u304c\u3001assignment in a conditional clause \u306a\u3069\u3068\u547c\u3076\u3089\u3057\u3044\u3002 Python \u3067\u540c\u3058\u66f8\u304d\u65b9\u3092\u3059\u308b\u3068 syntax error \u306b\u306a\u308b\u3002 import re with open('/etc/hosts') as f: if m = re.sear\u2026","provider_url":"https://hatena.blog","author_name":"a666666","author_url":"https://blog.hatena.ne.jp/a666666/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2021%2F08%2F29%2F040610\" title=\"Python 3.8 \u4ee5\u964d\u3067 Ruby \u306e if m = &quot;foo&quot;.match(/foo/) \u307f\u305f\u3044\u306b if \u306e\u6761\u4ef6\u306e\u7d50\u679c\u3092\u4ee3\u5165\u3059\u308b\u306b\u306f if m:= xxx \u3068\u3059\u308b - @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>","provider_name":"Hatena Blog","type":"rich","width":"100%","title":"Python 3.8 \u4ee5\u964d\u3067 Ruby \u306e if m = \"foo\".match(/foo/) \u307f\u305f\u3044\u306b if \u306e\u6761\u4ef6\u306e\u7d50\u679c\u3092\u4ee3\u5165\u3059\u308b\u306b\u306f if m:= xxx \u3068\u3059\u308b","published":"2021-08-29 04:06:10","url":"https://blog.kyanny.me/entry/2021/08/29/040610","blog_url":"https://blog.kyanny.me/"}