Skip to content
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
DiscussPlaces
DiscussPlaces
Destinations Popular Recent City guides Chat
Log in Join free New topic
  1. Discussions around everything
  2. Categories
  3. United States
  4. What does WB mean in Python?

What does WB mean in Python?

Scheduled Pinned Locked Moved United States
technology and computingdatabasespythonfilefilespython openspython files
2 Posts 2 Posters 988 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • redswan469R
    redswan469R
    redswan469
    Discussion Fanatics
    wrote on last edited by
    #1

    The wb indicates that the file is opened for writing in binary mode. When writing in binary mode, Python makes no changes to data as it is written to the file.

    1 Reply Last reply
    0
    • faisalF
      faisalF
      faisal
      Discussion Fanatics
      wrote on last edited by
      #2

      **w ** opens for reading and writing, truncating the file but also allowing you to read back whats been written to the file. a opens for appending and reading, allowing you both to append to the file and also read its contents.

      One may also ask, what are python files? A file is some information or data which stays in the computer storage devices. Python gives you easy ways to manipulate these files. Generally we divide files in two categories, text file and binary file. Text files are simple text where as the binary files contain binary data which is only readable by computer.

      Then, what does RB mean in Python?

      read binary

      What does A mean in Python?

      Python opens files almost in the same way as in 😄 r Open for reading and writing. The stream is positioned at the beginning of the file. **a ** Open for reading and appending (writing at end of file). The file is created if it does not exist.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      New here?

      DiscussPlaces is where people swap honest notes about living in, visiting and studying in places around the world.

      Join free

      Related topics

      • What does OD mean in ball pythons?
        S
        silversnake588
        0
        2
        985

      • What does Thural mean?
        P
        purplegoose545
        0
        2
        798

      • How do I separate a first and last name in Excel?
        beautifuldog232B
        beautifuldog232
        0
        2
        919

      • What is the largest hard drive supported by Windows 10?
        A
        angrygoose263
        0
        2
        815

      • What is to no avail mean?
        tinytiger956T
        tinytiger956
        0
        2
        927

      Trending this week

      Tags

      technology and computingdatabasespythonfilefilespython openspython files

      Whether the information provided was useful?

      Add a quick comment about your valuable suggestion to help us improve.




      We are glad to make you happy, kindly share this feedback with your friends and family to know as well


      Where is it?

      DiscussPlaces

      Honest conversations about places: living there, visiting, studying and eating well.

      Explore

      Countries and cities Popular topics Recent topics Tags

      Guides

      City guides Geography and facts World flags Ask a question

      Community

      Live chat Members Join free

      © DiscussPlaces AboutContactPrivacyTermsPhotos: Manarola by Timothy A. Gonsalves (CC BY-SA 4.0) and Lisbon by Dale Cruse (CC BY 4.0), via Wikimedia Commons.

      Live chat
      • Sound
      • Notification
      • Hide
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0