challenge 条件を満たす行を取り除く

ファイルから1行ずつ読み込み、"#"で始まる行だけを取り除いてファイルに出力するコードを書いてください。

サンプル入力

hello!
# remove this
 # don't remove this
bye!
サンプル出力
hello!
 # don't remove this
bye!

Posted feedbacks

Number of comments:84 Nested Flatten
  1. 8 Python
  2. 6 Ruby
  3. 4 PHP OCaml C#
  4. 3 C++ Perl Common Lisp awk Bash Haskell
  5. 2 Other Java Prolog Groovy Batchfile
  6. 1 Emacs Lisp XSLT Pnuts なでしこ C Vim Scheme sed R D VB.net Smalltalk JavaScript Io Lua StandardML PowerShell Scala 秀丸マクロ Erlang

Index

Feed

Other

Link

Pathtraq

loading...