爱雨轩 发表于 2021-5-12 08:44:51

求助! 如何让python的输入从竖版变成横板 谢谢各位神仙

本帖最后由 爱雨轩 于 2021-5-12 08:50 编辑

member = ["1" "22" "300"]
for each in member :
    print(each, len(each))

结果是这个122300 6
如何变成:
1
22
300

qq1151985918 发表于 2021-5-12 08:48:33

加个逗号
member = ["1" ,"22" ,"300"]
for each in member :
    print(each, len(each))

爱雨轩 发表于 2021-5-12 08:50:34

🆗了谢谢
页: [1]
查看完整版本: 求助! 如何让python的输入从竖版变成横板 谢谢各位神仙