迭代器
方便的 for
到目前为止,您可能已经注意到大多数容器对象都可以使用 for 语句:
for element in [1, 2, 3]:
print(element)
for element in (1, 2, 3):
print(element)
for key in {'one':1, 'two':2}:
print(key)
for char in...
if
if.py
'''
func: if 测试
author: binbin.hou
'''
x = int(input("Enter an int: "))
if x <= 18:
print("Young")
elif x < 50:
print("Adult")
elif x < 100:
print("Old")
else:
print("Am...
Python
Python is powerful… and fast; plays well with others; runs everywhere; is friendly & easy to learn; is Open.
python zh_CN
Hello World
Install
cmd
C:\Users\...