CSD Shell example and modified add_list_to_set Page 133 match
This commit is contained in:
parent
d931b7df39
commit
97aacc7384
|
@ -1,3 +1,7 @@
|
||||||
|
2024-06-17 hwpplayer1 <hwpplayer1@debian>
|
||||||
|
|
||||||
|
* python/Python.pdf: CSD (PSD) shell example written page 133
|
||||||
|
|
||||||
2024-06-09 Mert Gör <mertgor@masscollabs.xyz>
|
2024-06-09 Mert Gör <mertgor@masscollabs.xyz>
|
||||||
|
|
||||||
* python/Python.pdf: continue Deyimi sayfa 132
|
* python/Python.pdf: continue Deyimi sayfa 132
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
"""
|
|
||||||
Experimental code written by Mert Gör(hwpplayer1)
|
|
||||||
GPLv3-or-later
|
|
||||||
"""
|
|
||||||
|
|
||||||
mert = set('mert')
|
mert = set('mert')
|
||||||
gor = ['g','o','r']
|
gor = ['g','o','r']
|
||||||
mert.update(gor)
|
print(gor,mert)
|
||||||
print(mert)
|
|
||||||
|
|
14
python/psd-shell.py
Normal file
14
python/psd-shell.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
while True:
|
||||||
|
cmd = input('PSD>').strip()
|
||||||
|
if cmd == '':
|
||||||
|
continue
|
||||||
|
if cmd == 'dir':
|
||||||
|
print('dir command')
|
||||||
|
elif cmd == 'del':
|
||||||
|
print('del command')
|
||||||
|
elif cmd == 'copy':
|
||||||
|
print('copy command')
|
||||||
|
elif cmd == 'exit':
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
print('bad command!')
|
Loading…
Reference in New Issue
Block a user