Kommandolinjetolking.
Laget kommandolinjetolker, og definert noen kommandoer (de fleste uten implementasjon). Knyttet boksøkefunksjonen inn i denne galskapen. Oppdaterte arguments.txt litt.
This commit is contained in:
4
python/util.py
Normal file
4
python/util.py
Normal file
@@ -0,0 +1,4 @@
|
||||
def cut_str(string, length, ellipsis='...'):
|
||||
if len(string) < length:
|
||||
return string
|
||||
return string[0:length-len(ellipsis)]+ellipsis
|
||||
Reference in New Issue
Block a user