f
Ruby-Style String Interpolation for Python.
- GitHub: https://github.com/mozillazg/f
- License: MIT license
- Python version: 2.6, 2.7, pypy, pypy3, 3.3, 3.4, 3.5, 3.6
Usage
>>> import f
>>> a = 2
>>> b = 3
>>> f('#{a}')
'2'
>>> f('#{a + b}')
'5'
Ruby-Style String Interpolation for Python.
Ruby-Style String Interpolation for Python.
>>> import f
>>> a = 2
>>> b = 3
>>> f('#{a}')
'2'
>>> f('#{a + b}')
'5'