Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem A: python print()函数
Problem A: python print()函数
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Solved: 11
Submit: 27
Statistics
Description
print()
函数用于打印输出,print()函数中可以有多个参数。当参数有多个时,参数之间用逗号分隔开, 以下是print()函数的使用样例
>>>
print
(
1
)
1
>>>
print
(
"
Hello World
"
)
Hello
World
>>>
a
=
1
>>>
b
=
'
runoob
'
>>>
print
(
a
,
b
)
1
runoob
>>>
print
(
"
aaa
"
"
bbb
"
)
aaabbb
>>>
print
(
"
aaa
"
,
"
bbb
"
)
aaa
bbb
Input
无
Output
一行字符串hello world!
Sample Input
Copy
无
Sample Output
Copy
hello world!