Home
ProblemSet
Contest
Status
Ranklist
F.A.Qs
Login
Register
1312: 【Python】(String)字符串连接和相乘
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:69
Solved:51
Submit
Submit Record
Statistics
Web Board
ShowOff!
Description
字符串使用+号可以连接。
如:
a = "Hello " + " " + "Python!"
a的内容为
"Hello Python!"
b = "ABC" * 3
b的内容为"ABCABCABC"
【题目描述】
输入两个字符串a、b将其相连后连续输出n次。
Input
分3含输入a、b、n。
Output
一个字符串
Sample Input
Copy
* # 5
Sample Output
Copy
*#*#*#*#*#
Source/Category
Python
字符串