コード例:
#!/usr/bin/python3
i=0
while i < 5:
print("Number is",i )
i += 1
実行例:
#
#cat examples.py
#!/usr/bin/python3
i=0
while i < 5:
print("Number is",i )
i += 1
#
#./examples.py
Number is 0
Number is 1
Number is 2
Number is 3
Number is 4
#
備考:
環境:
- AlmaLinux release 8.4 (Electric Cheetah)
- Python 3.6.8