other:python:misc_by_jyp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:python:misc_by_jyp [2022/02/21 17:46] – [numpy related stuff] Added reduceat jypeter | other:python:misc_by_jyp [2022/03/08 17:40] – [Playing with strings] jypeter | ||
---|---|---|---|
Line 39: | Line 39: | ||
True</ | True</ | ||
+ | ==== Playing with strings ==== | ||
+ | |||
+ | === Filenames, etc... === | ||
+ | |||
+ | Check [[other: | ||
+ | |||
+ | === Splitting strings === | ||
+ | |||
+ | It's easy to split a string with multiple blank delimiters, or a specific delimiter, but it can be harder to deal with sub-strings | ||
+ | |||
+ | < | ||
+ | >>> | ||
+ | [' | ||
+ | |||
+ | >>> | ||
+ | >>> | ||
+ | [' | ||
+ | |||
+ | >>> | ||
+ | >>> | ||
+ | [' | ||
+ | |||
+ | >>> | ||
+ | >>> | ||
+ | [' | ||
==== Working with paths and filenames ==== | ==== Working with paths and filenames ==== | ||
other/python/misc_by_jyp.txt · Last modified: 2024/11/04 15:01 by jypeter