# help 负责随时为你提供帮助help(print)# help(None)等价与help(print()),因为print()函数没有返回值
Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
flush: whether to forcibly flush the stream.
打印(…)
打印(值,…,sep='',end='\\n',file=sys.stdout,flush=false)
默认情况下,将值打印到流或sys.stdout。
可选关键字参数:
文件:类似于文件的对象(流);默认为当前sys.stdout。
sep:在值之间插入的字符串,默认为空格。
结束:在最后一个值后附加的字符串,默认为换行符。
冲洗:是否强制冲洗水流。
## 九九乘法表# version 1.0for o inrange(1,10):#控制外循环,从1到9for i inrange(1,o+1):#内循环,每次从第一个数字开始,打印到跟行数相同的数量,# o+1是因为range函数左包括右不包括print(o*i,end=" ")print()