[ 源代码: python-parse ]
软件包:python3-parse(1.20.2-1)
Provide the reverse function for format(), Python 3 package
Parse strings using a specification based on the Python format() syntax. parse() is the opposite of format(). For example:
>>> parse("It's {}, I love it!", "It's spam, I love it!") <Result ('spam',) {}> >>> _[0] 'spam'
Or to search a string for some pattern:
>>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n') <Result (42,) {}>
其他与 python3-parse 有关的软件包
|
|
|
|
-
- dep: python3
- interactive high-level object-oriented language (default python3 version)