zoukankan      html  css  js  c++  java
  • why python doesn't have a writeline() method like c# ?

    just curious, it would make writing to a file  a bit easier?

    ww <mrwwli <at> gmail.com> writes:

    >
    > just curious, it would make writing to a file  a bit easier?

    Because readline() returns the line with the newline attached, writeline() would
    have to require a newline at the. Therefore, it would be equivalent to write()!

    Just use f.write("some line\n").

     from

    http://www.opensubscriber.com/message/python-list@python.org/11602035.html 


    blog client has some thing wrong,i write two times,but it disappear  curious,so finally i put the link over here as a memo

  • 相关阅读:
    SVG的引入历程
    Webstorm的常用快捷键
    TypeScript
    Vue Router
    ISO8601
    html5语义化
    删除已有的 HTML 元素
    with(){}方法
    Jquery学习笔记
    css权值问题
  • 原文地址:https://www.cnblogs.com/lexus/p/1675790.html
Copyright © 2011-2022 走看看