消息 [344070]
When the argument to lstrip / strip has a number and it matches the string it begins to act different.
>>> text = "apiv1appliance"
>>> text.strip("apiv1")
'liance'
>>> text.strip("apiv2")
'1appliance'
>>> text.strip("a")
'piv1appliance'
>>> text.strip("ap")
'iv1appliance'
>>> text.strip("api")
'v1appliance'
>>> text.strip("apiv")
'1appliance'
>>> text.strip("apiv1")
'liance'
>>> text.strip("apiv2")
'1appliance' |
|
| 日期 |
用户 |
动作 |
参数 |
| 2019-05-31 12:40:18 | Akilesh K | 修改 | recipients:
+ Akilesh K |
| 2019-05-31 12:40:18 | Akilesh K | 修改 | messageid: <1559306418.29.0.0735578073723.issue37114@roundup.psfhosted.org> |
| 2019-05-31 12:40:18 | Akilesh K | 链接 | issue37114 messages |
| 2019-05-31 12:40:18 | Akilesh K | 创建 | |
|