Leo*_*etz 5 crystal-lang
如何在不按Enter/return的情况下从控制台读取单个字符?
在红宝石中我会使用:
require 'io/console' input = STDIN.getch
ast*_*ite 13
试试这个:
char = STDIN.raw &.read_char p char
归档时间:
9 年,3 月 前
查看次数:
590 次
最近记录: