注册 登录
编程论坛 Python论坛

一个菜鸟的问题python3代码

刘玉新 发布于 2019-03-18 20:45, 2095 次点击

for magician in magicians:

    print(magician.title() + ",that was a great trick!")
   
    print("I can't wait to see your next trick," + magician.title() + ".\n")
为什么不能打印
5 回复
#2
WatchCurtai2019-03-19 17:15
不懂
#3
刘玉新2019-03-19 19:46
书上的一段代码
magicians = ['alice','david','carolina']
for magician in magicians:
    print(magician.title() + ",that was a great trick!")
    print("I can't wait to see your  next trick," + magickan.title() + ".\n")
 打印运行时失败。不知道哪儿出了问题。
#4
刘玉新2019-03-19 20:58
问题解决了,是因为第4行总写成了第3行的子代码了,
#5
潇潇兮2019-05-07 18:06
为什么下载好了Python,也可以正常使用,但是保存了程序就打不开了,该怎么办呢?求大家救救孩子
#6
龙巴特2019-11-12 14:07
import turtle
turtle.pensize(2)
turtle.circle(10)
turtle.circle(40)
turtle.circle(80)
turtle.circle(160)

没有问题,就是不能运行
1