<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuheiomori0718</author_name>
  <author_url>https://blog.hatena.ne.jp/yuheiomori0718/</author_url>
  <blog_title>メモ置き場</blog_title>
  <blog_url>https://y0m0r.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>golang</anon>
    <anon>memo</anon>
  </categories>
  <description>pythonで[]を代入する書き方があるって知らなかった。 # coding=utf-8 l = [i for i in range(0, 10)] assert l == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # 範囲を指定して値を削除 # del [2:4] l[2:4] = [] assert l == [0, 1, 4, 5, 6, 7, 8, 9] goのスライスだとこう書くのがいいみたい package main import &quot;fmt&quot; func main() { l := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} l = a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20140210%2F1392046138&quot; title=&quot;範囲を指定してリスト(スライス)の値を削除する - メモ置き場&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>2014-02-10 00:28:58</published>
  <title>範囲を指定してリスト(スライス)の値を削除する</title>
  <type>rich</type>
  <url>https://y0m0r.hateblo.jp/entry/20140210/1392046138</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
