PyMuPDF 1.24.2 Documentationembfile_add() 5.13 Deleting Pages To delete a page from a document, do the following: import fitz doc = fitz.open("test.pdf") # open a document doc.delete_page(0) # delete the 1st page of the document doc the document To delete a multiple pages from a document, do the following: import fitz doc = fitz.open("test.pdf") # open a document doc.delete_pages(from_page=9, to_page=14) # delete a page range from from the document doc.save("test-deleted-pages.pdf") # save the document 5.13.1 What happens if I delete a page referred to by bookmarks or hyperlinks? • A bookmark (entry in the Table of Contents) will0 码力 | 565 页 | 6.84 MB | 1 年前3
Jinja2 Documentation Release 2.10sandbox is enabled. jinja2.sandbox.unsafe(f) Marks a function or method as unsafe. @unsafe def delete(self): pass jinja2.sandbox.is_internal_attribute(obj, attr) Test if the attribute given is an 11.16 Version 2.5.5 (re-release of 2.5.4 with built documentation removed for filesize. Released on Oc- tober 18th 2010) 132 • built documentation is no longer part of release. 11.17 Version 2.5.4 (bugfix0 码力 | 148 页 | 475.08 KB | 1 年前3
Django 4.0.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 7 Django Documentation, Release 4.0.11 attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: Listing 2: mysite/news/models0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 7 Django Documentation, Release 3.2.21 attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: Listing 2: mysite/news/models0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 2.2.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 7 Django Documentation, Release 2.2.29 attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. It’s as easy as registering your model in the admin site: Listing 2: mysite/news/models0 码力 | 2060 页 | 7.23 MB | 1 年前3
peewee Documentation
Release 3.3.0dies. We need to remove him from the database: herb_mittens.delete_instance() # he had a great life # Returns: 1 Note: The return value of delete_instance() is the number of rows removed from the database 'Tennis Court 2')) Delete all bookings As part of a clearout of our database, we want to delete all bookings from the bookings table. DELETE FROM bookings; query = Booking.delete() Delete a member from from our database. DELETE FROM members WHERE memid = 37; query = Member.delete().where(Member.memid == 37) Delete based on a subquery How can we make that more general, to delete all members who have0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0dies. We need to remove him from the database: herb_mittens.delete_instance() # he had a great life # Returns: 1 Note: The return value of delete_instance() is the number of rows removed from the database 'Tennis Court 2')) Delete all bookings As part of a clearout of our database, we want to delete all bookings from the bookings table. DELETE FROM bookings; query = Booking.delete() Delete a member from from our database. DELETE FROM members WHERE memid = 37; query = Member.delete().where(Member.memid == 37) Delete based on a subquery How can we make that more general, to delete all members who have0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.0.0Test Utils Flask Utils Query Builder Declaring tables Select queries Insert queries Update queries Delete queries More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom dies. We need to remove him from the database: herb_mittens.delete_instance() # he had a great life # Returns: 1 Note The return value of delete_instance() is the number of rows removed from the database 'Tennis Court 2')) Delete all bookings As part of a clearout of our database, we want to delete all bookings from the bookings table. DELETE FROM bookings; query = Booking.delete() Delete a member from0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 3.4.0Test Utils Flask Utils Query Builder Declaring tables Select queries Insert queries Update queries Delete queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group dies. We need to remove him from the database: herb_mittens.delete_instance() # he had a great life # Returns: 1 Note The return value of delete_instance() is the number of rows removed from the database 'Tennis Court 2')) Delete all bookings As part of a clearout of our database, we want to delete all bookings from the bookings table. DELETE FROM bookings; query = Booking.delete() Delete a member from0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0dies. We need to remove him from the database: herb_mittens.delete_instance() # he had a great life # Returns: 1 Note: The return value of delete_instance() is the number of rows removed from the database peewee Documentation, Release 3.5.0 (continued from previous page) # Delete the user and their associated tweets. user.delete_instance(recursive=True) Transactions can be explicitly committed or rolled-back manager: with db.manual_commit(): db.begin() # Have to begin transaction explicitly. try: user.delete_instance(recursive=True) except: db.rollback() # Rollback! An error occurred. raise else: try:0 码力 | 282 页 | 1.02 MB | 1 年前3
共 448 条
- 1
- 2
- 3
- 4
- 5
- 6
- 45













