LoginSignup
0
0

More than 3 years have passed since last update.

Django girls-2 Python入門(途中まで)

Posted at

”文字列”.upper()
大文字に変換

upper()のように、特定のオブジェクトにのみ実行される関数はメソッドと呼ばれる。

リスト

x.append()
()の値をリストに追加
x.pop(インデックス)
インデックスの値を削除

ディクショナリ

x = {'name':'Ken', 'age':30, 'num':[1,5,9]}
キー:値
値にはリストも入れられる

x['birthday'] = '1990/1/17'
キーと値の追加

x.pop(キー)
キーと値の削除

x['name']='Kentaro'
値の上書き(変更)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0