>> print(i for i inrange(10))
<generator object <genexpr> at 0x7fe7353aa8c0>
>>> (i for i inrange(10))
<generator object <genexpr> at 0x7fe7353aa8c0>
>>> [i for i inrange(10)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>>
weixin_39726267的博客一、输入与输出1、print打印(1)打印字符串:%s>>> name = "yisan">>> print ("hello %s,Nice to meet you!!" %name)hello yisan,Nice to meet you!!(2)打印数字:%d>>> age = 26>>...