posebear1990
V2EX  ›  问与答

日常处理文本的话, Ruby 和 Python 谁更好用一点?

  •  
  •   posebear1990 · Oct 26, 2018 · 2496 views
    This topic created in 2768 days ago, the information mentioned may be changed or developed.

    或者 Node ?

    4 replies    2018-10-27 13:05:59 +08:00
    Dannytmp
        1
    Dannytmp  
       Oct 26, 2018 via Android
    哪个熟用哪个
    zhanglintc
        2
    zhanglintc  
       Oct 26, 2018
    非要问的话, 我觉得 Ruby 好, 理由是 Ruby 天生内置正则表达式, 而 Python 需要 import re, 写起来绝对没有 Ruby 顺手和简洁.

    但是, 跟 1 楼说的一样, 哪个熟悉用哪个.
    msg7086
        3
    msg7086  
       Oct 27, 2018
    会哪个用哪个。
    都不会的话,Python 比较死板,Ruby 比较奇技淫巧,你是什么风格的就选什么语言就行了。
    如果会 Perl 的话可以选 Ruby。
    agagega
        4
    agagega  
       Oct 27, 2018 via iPad
    Ruby 从 Perl 抄了不少东西,文本处理很舒服的,哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 19:59 · PVG 03:59 · LAX 12:59 · JFK 15:59
    ♥ Do have faith in what you're doing.