Python print(在Python 3.0中就变成了函数了) print语句是把对象用文本化的形式输出到标准的输出流上. Operation Interpretation print spam, ham Print objects to sys.stdout, add a space between print spam, ham, Same, but don't add newline at end >>> print 'Hello World!' Hello World!…
if语句应用之——求最大值 """ 求三个数字中的最大值,并打印出来 """ a = int(input("a:")) b = int(input("b:")) c = int(input("c:")) if a>b: max_num = a if max_num >c: print(max_num) else: print(c) else: max_num = b if m…