This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}) |
NewerOlder