Skip to content

Instantly share code, notes, and snippets.

View Yougigun's full-sized avatar
🤔
Thinking of ...

Gary Yougigun

🤔
Thinking of ...
  • Binance
  • Remote/Taiwan
View GitHub Profile
# creat branch
git branch <branch name>
# delete a branch (not merge yet)
git branch -d <brannch name>
# delete a branch( no matter)
git branch -D <branch name>
# swithc to the branch
git checkout <branch nane>
# create the branch and swithc to the one
git checkout -b <branch name>
@Yougigun
Yougigun / create_dictionary.py
Last active July 11, 2020 00:56
create dictionary
# Create Dictionary
## 1. dict(key=value,...)
family_age_a = dict(Dad=55, Mom=54, Bro=23)
## 2. {key:value,...}
family_age_b = {'Dad': 55, 'Mom': 54, 'Bro': 23}
## 3. dict([(key,value),...])
family_age_c= dict([('Dad', 55), ('Mom', 54), ('Bro', 23)])
## 4. dict({key:value,...})
family_age_d = dict({'Dad': 55, 'Mom': 54, 'Bro': 23})