<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yynkt</author_name>
  <author_url>https://blog.hatena.ne.jp/yynkt/</author_url>
  <blog_title>Rosso Laboratory</blog_title>
  <blog_url>https://rossolabo.hatenablog.jp/</blog_url>
  <categories>
    <anon>Pythonスクリプト</anon>
  </categories>
  <description>「鉄道模型シミュレーターNX」で学ぶPythonプログラミング 第３章からP.54・for ～ inってループっぽいな？って私が思いました(^_^;)プログラミング言語によってループ（繰り返し）の構文が違う訳ですが、Pythonではこう書くんですね。詳しくはコチラ。for car in train.GetCarList(): ←本では「:」が抜けてます if car.GetCarPos() == 0: car.SetRoomlight(True)＜翻訳＞trainの車両リストをゲットして変数carに代入し、存在する分全部繰り返す。もしcarの位置が中間車（0）ならばcarの室内灯をオンにする（…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frossolabo.hatenablog.jp%2Fentry%2F2021%2F05%2F27%2F230000&quot; title=&quot;ＮＸ書籍でつまづきそうな用語（２） - Rosso Laboratory&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yynkt/20250422/20250422074959.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-27 23:00:00</published>
  <title>ＮＸ書籍でつまづきそうな用語（２）</title>
  <type>rich</type>
  <url>https://rossolabo.hatenablog.jp/entry/2021/05/27/230000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
