<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>petitviolet</author_name>
  <author_url>https://blog.hatena.ne.jp/petitviolet/</author_url>
  <blog_title>petitviolet_blog</blog_title>
  <blog_url>https://petitviolet.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>正直どうでもいい上にめっっっちゃ簡単なことを調べてみたので一応. 調べたこと 例えば今 n = 1 として, n に 2 をしたい時に n += 1とするべきか, n = 2とするべきか. 調べ方 変数を1増やしたい時にどっちがいいかを判定するために, pass(何もしない) 1大きい値を代入していく 1足していく の3通りで10億回for文を回すのにかかる時間を調べた. 環境 プロセッサ:2.13GHz Intel Core 2 Duo メモリ:4GB Python:2.7.2 今回作ったコード(t.py) # -*- encoding:utf-8 -*- import sys N = 10…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpetitviolet.hatenablog.com%2Fentry%2F20110911%2F1315755581&quot; title=&quot;値を1大きくする速さ - petitviolet_blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-09-11 00:39:41</published>
  <title>値を1大きくする速さ</title>
  <type>rich</type>
  <url>https://petitviolet.hatenablog.com/entry/20110911/1315755581</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
