n3956.net
Useful logs on scientific data analysis
コンテンツへスキップ
home
tips
about me
←
Mathematica で高次の項を無視する
フィッティング Scipy optimize curve_fit
→
リストの操作
投稿日:
2018-11-27
作成者:
n3956
Python
# python のリストの作成 a = [1,2,3,4,5] a [1, 2, 3, 4, 5] # 最後の要素を除いたリスト a[:-1] [1, 2, 3, 4] # 最初の要素を除いたリスト a[1:] [2, 3, 4, 5] # a と同じ a[0:] [1, 2, 3, 4, 5]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# python のリストの作成
a
=
[
1
,
2
,
3
,
4
,
5
]
a
[
1
,
2
,
3
,
4
,
5
]
# 最後の要素を除いたリスト
a
[
:
-
1
]
[
1
,
2
,
3
,
4
]
# 最初の要素を除いたリスト
a
[
1
:
]
[
2
,
3
,
4
,
5
]
# a と同じ
a
[
0
:
]
[
1
,
2
,
3
,
4
,
5
]
カテゴリー:
python
パーマリンク
←
Mathematica で高次の項を無視する
フィッティング Scipy optimize curve_fit
→
コメントを残す
コメントをキャンセル
コメントを投稿するには
ログイン
してください。
検索:
最近の投稿
WSL の起動が遅いときの対処 systemd-networkd-wait-online.service が遅い
Julia
bashで関数の標準出力を配列として受け取って利用
Read and compare command characters with Arduino Ethernet Shield
バイナリデータ 文字リテラル 2進数 16進数
最近のコメント
Archive
2025年5月
2024年8月
2024年7月
2024年2月
2024年1月
2023年9月
2023年4月
2023年1月
2022年1月
2021年2月
2021年1月
2020年4月
2019年12月
2019年11月
2019年10月
2019年8月
2019年1月
2018年12月
2018年11月
2017年11月
2016年11月
2016年8月
2016年7月
2015年11月
2014年10月
2014年5月
2014年3月
2014年2月
2013年10月
2013年9月
2013年8月
2013年7月
カテゴリー
data analysis
Linux
matplotlib
pyOpenGL
pyROOT
python
ROOT
未分類
メタ情報
ログイン
投稿の
RSS
コメントの
RSS
WordPress.org
Ratings
リストの操作
(0.00)
三角関数に関する公式
(0.00)
WSLでGUIがサポートされるようになった(Windows10でも)
(0.00)
StatPress TopPosts
Page: Home
(332003)
/blog/
(11228)
matplotlib のプロットの単純な例
(5892)
matplotlib で等高線グラフ
(4974)
pyOpenGL を Windows8 (64bit) にインストールする
(4286)
Calendar
2025年6月
月
火
水
木
金
土
日
« 5月
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30