2024-07-02 09:50:28 发布
网友
我正在尝试执行此操作,但无法执行
有人能帮忙吗
teamname1 = print(input((plyer1,' Name of your team? ')) teamname2 = print(input(plyer2,' Name of your team? ')) print(teamname1) print(teamname2)
我不太确定你想用teamname变量做什么。如果你能修改问题/代码,那会很有帮助
至于打印和输入在同一行,我认为这可能是你的目标
print("player1" + " " + input("Name of your team: ")) print("player2" + " " + input("name of your team: "))
另外,网上有很多教程可以提供帮助。一定要先四处看看,然后到这儿来
三个问题:
你可能需要这样的东西:
plyer1 = 'parach' plyer2 = 'amk' teamname1 = input(plyer1 + ' Name of your team? ') teamname2 = input(plyer2 + ' Name of your team? ') print(teamname1) print(teamname2)
我不太确定你想用teamname变量做什么。如果你能修改问题/代码,那会很有帮助
至于打印和输入在同一行,我认为这可能是你的目标
另外,网上有很多教程可以提供帮助。一定要先四处看看,然后到这儿来
三个问题:
你可能需要这样的东西:
相关问题 更多 >
编程相关推荐