Python tutorial - String Multiplication
已回答
Working through the Python tutorial in PyCharm and when I have the following code and check the task it says "use multiplication".
hello = "hello"
ten_of_hellos = hello * 10
print(ten_of_hellos)
The output does show ten hellos strung together:
hellohellohellohellohellohellohellohellohellohello
Is this a bug in the tutorial? I am using PyCharm.edu 3.0 on macOS Sierra
请先登录再写评论。
Hello Michael, thanks for the report.
Yes, it's already known issue https://youtrack.jetbrains.com/issue/EDU-757, please check the workaround: https://youtrack.jetbrains.com/issue/EDU-757#comment=27-1580903.