我想把一个句子分成两部分。例如: "My name is really nice. This is so awesome."
- > ["My name","name is", "is really", "really nice.", "This is", "is so", "so awesome."]
任何帮助吗?
我应该写一个循环程序,让用户输入一系列整数,然后用-99指示系列结束。所有数字输入后,程序应显示输入的最大和最小数字。 这是我到目前为止有: def main():
user_input = 1
while user_input != -99:
user_input = int(input("Enter your number or -99 to end."))
你好是我的问题的相关代码: class Player:
def __init__(self, name, x, y, isEvil):
self.health = 50
self.attack = randint(1, 5)
self.name = name
self.x = x
self.y = y