Write slides about merge with conflict
This commit is contained in:
parent
c6c938207f
commit
1df85219c9
7 changed files with 127 additions and 3 deletions
15
code-examples/python-cat.py
Normal file
15
code-examples/python-cat.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
def cat():
|
||||
print("Meow")
|
||||
|
||||
def main():
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "cat":
|
||||
cat()
|
||||
else:
|
||||
print("HELLO WORLD")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
15
code-examples/python-dog.py
Normal file
15
code-examples/python-dog.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
def dog():
|
||||
print("Woof")
|
||||
|
||||
def main():
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "dog":
|
||||
dog()
|
||||
else:
|
||||
print("HELLO WORLD")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
20
code-examples/python-merged.py
Normal file
20
code-examples/python-merged.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
def cat():
|
||||
print("Meow")
|
||||
|
||||
def dog():
|
||||
print("Woof")
|
||||
|
||||
def main():
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "cat":
|
||||
cat()
|
||||
elif len(sys.argv) > 1 and sys.argv[1] == "dog":
|
||||
dog()
|
||||
else:
|
||||
print("HELLO WORLD")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue