mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix copy-friendliness of tutorial example (GH-93424)
(cherry picked from commit 34d11f1b0c
)
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
This commit is contained in:
parent
5a48ab01e9
commit
3a33e9b7a0
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ placeholders such as the current date, image sequence number, or file format::
|
|||
>>> photofiles = ['img_1074.jpg', 'img_1076.jpg', 'img_1077.jpg']
|
||||
>>> class BatchRename(Template):
|
||||
... delimiter = '%'
|
||||
...
|
||||
>>> fmt = input('Enter rename style (%d-date %n-seqnum %f-format): ')
|
||||
Enter rename style (%d-date %n-seqnum %f-format): Ashley_%n%f
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue