CSD Shell script match case example written
This commit is contained in:
parent
5c8e8e723a
commit
a023054732
|
@ -1,3 +1,7 @@
|
||||||
|
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
||||||
|
|
||||||
|
* python/csd_case_match.py: CSD shell script match case example written
|
||||||
|
|
||||||
2024-06-23 hwpplayer1 <hwpplayer1@debian>
|
2024-06-23 hwpplayer1 <hwpplayer1@debian>
|
||||||
|
|
||||||
* python/match.py: match example
|
* python/match.py: match example
|
||||||
|
|
13
python/csd_case_match.py
Normal file
13
python/csd_case_match.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
while True:
|
||||||
|
cmd = input('CSD>').strip()
|
||||||
|
match cmd:
|
||||||
|
case 'delete' | 'remove' | 'erase':
|
||||||
|
print('silme işlemi')
|
||||||
|
case 'copy':
|
||||||
|
print('kopyalama işlemi')
|
||||||
|
case 'rename':
|
||||||
|
print('isim değiştirme işlemi')
|
||||||
|
case 'exit' | 'quit':
|
||||||
|
break
|
||||||
|
case _:
|
||||||
|
print('geçersiz komut!')
|
Loading…
Reference in New Issue
Block a user