Raj*_*kar -2 html python regex django django-templates
我有一个类似的文字
s = bluesky
我想得到它s = *******(等于*没有字符)
我正在寻找python的正则表达式.Plz的帮助.任何帮助将不胜感激
编辑1:
b = '*'*len(s)
Run Code Online (Sandbox Code Playgroud)
我们怎么能在Django模板中做到这一点
你不需要正则表达式:
s = 'bluesky'
b = '*'*len(s)
print b
Run Code Online (Sandbox Code Playgroud)
输出:
>>> s = 'bluesky'
>>> b = '*'*len(s)
>>> print b
*******
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
257 次 |
| 最近记录: |