Write a function named stringToNum that receives a string parameter of numbers separated with commas and returns a list of integers based on the string parameter e.g. stringToNum(“5,6,7,8”) would return [5,6,7,8].
收起
问题是你得字符串是什么样得格式,是逗号隔开还是分号隔开?需要作什么处理。然后处理成list
报告相同问题?