1. Kaz-su
Changes in body
Source | HTML | Preview
@@ -1,27 +1,27 @@
### perl (5.18.2 で確認)
```perl
perl -E 'say"$_月は横浜で酒が飲めるぞ"for(1..12)'
```
### ruby
```ruby
ruby -e '12.times{|i|puts"#{i+1}月は横浜で酒が飲めるぞ"}'
```
### bash
```bash
for i in {1..12};do;echo $i月は横浜で酒が飲めるぞ;done
```
### python3 (3.7.2 で確認)
```python
-python3 -c `[print("%d月は横浜で酒が飲めるぞ" % n) for n in range(1, 13)]`
+python3 -c 'for n in range(1, 13): print(f"{n}月は横浜で酒が飲めるぞ")'
```
### emacs-lisp (GNU Emacs 26.1 で確認)
```emacs-lisp
(require 'cl)(let ((x 0))(while (< x 12) (cl-incf x)(insert (format "%d月は横浜で酒が飲めるぞ\n" x))))
```