Discuss / Python / 请教

请教

Topic source

不要醉酒

#1 Created at ... [Delete] [Delete and Lock User]

L = ['Bart', 'Lisa', 'Adam']

for name in L:

    print('hello,name!')

为什么运行出来时三行 hello,name!啊 哭了

不要醉酒

#2 Created at ... [Delete] [Delete and Lock User]

而且老师给的代码中有的在我的Python中运行不了,在老师网页上那个运行器反而可以运行,好迷糊啊0 0

as阿雀儿

#3 Created at ... [Delete] [Delete and Lock User]

print('hello!',name)  引号中的字符都是直接输出


  • 1

Reply