print语句默认是输出一行后添加一个换行符 >>> for item in ['apple','ibm','google','oracle']: ... print item ... apple ibm google oracle 在print语句的最后添加一个逗号(,),改变其默认行为: >>> for item in ['apple','ibm','google','oracle']: ... print item, ... apple ibm google or
变量是什么? 变量的作用 Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves