Python教程

python输入输出详情

本文主要是介绍python输入输出详情,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
# 输入单个参数
# a = input("input params : ")
# print(type(a))

# 输入多个值、
# b,c,d = input("please input a triangle side length : ").split();
# b = int(b)
# c = int(c)
# d = int(d)
# print("the triangle Perimeter is : %d"%(b+c+d))


s = input("please input a string  ")
print("the sentence is %s  "%s)

这篇关于python输入输出详情的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!