首页 > 编程语言 > 详细

python输入输出(二)

时间:2019-01-22 00:15:12      阅读:177      评论:0      收藏:0      [点我收藏+]



输出

>>> print(5)
5
>>> print(5*6)
30
>>> s1 = "hello"
>>> print(s1)
hello
>>> print("hello")
hello
>>> print(5, s1)
5 hello
>>> print("My age is 5")
My age is 5
>>> age = 5
>>> print("My age is %d" % age)
My age is 5

输入

<br/><br/> >>> a = input() 1 >>> a ‘1‘ >>> a = input("please enter your name:") please enter your name:jwang106 >>> a ‘jwang106‘]

python输入输出(二)

原文:https://www.cnblogs.com/wangjiale1024/p/10301629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!