V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
Famio

console 的拟人化输出效果

  •  
  •   Famio · Sep 11, 2017 · 3419 views
    This topic created in 3164 days ago, the information mentioned may be changed or developed.
    前两天看 Spider Man 入迷了,憧憬于拥有个一个私人 Human-like bot.
    然后……想试试看,先做了个拟人化的输出效果,带随机键入错别字并退格修正效果,当然代码并不复杂……

    https://www.v2url.com/uploads/8babd08aa0.gif
    8 replies    2017-09-14 23:54:31 +08:00
    inmyfree
        1
    inmyfree  
       Sep 11, 2017
    真正的碰上这样的情况,你会发疯的。。。。速度慢死。。
    Famio
        2
    Famio  
    OP
       Sep 11, 2017
    @inmyfree 就是为了好玩,字符间隔时间也能自己改,哈哈,除了好玩就是无意义的项目~
    codeninja
        3
    codeninja  
       Sep 11, 2017
    有人做过这样的东西的
    https://github.com/pickhardt/betty
    但确实没有什么意义
    icyalala
        4
    icyalala  
       Sep 11, 2017
    在 linux 下,把 ls 误打成 sl,就会出现一个冒烟的小火车慢慢开过屏幕,中间还停不下来。无聊的时候感觉超有趣,着急的时候要疯掉~
    codermagefox
        5
    codermagefox  
       Sep 12, 2017
    有种"我醋带上了,谁借个螃蟹"的感觉...
    misaka19000
        6
    misaka19000  
       Sep 12, 2017
    Mac: brew install pv
    Linux: apt-get install pv

    pv -qL 10 xxx.txt

    效果和楼主的一样,楼主可以试试
    Govda
        7
    Govda  
       Sep 14, 2017 via Android
    人的打字速度是有波动的...
    Famio
        8
    Famio  
    OP
       Sep 14, 2017
    @Govda 我有加随机的 delay 的哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3465 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 11:18 · PVG 19:18 · LAX 04:18 · JFK 07:18
    ♥ Do have faith in what you're doing.