问题遇到的现象和发生背景 想在形式参数那里定义一个range序列
import numpy as np
def fun(numpy):
a=numpy+1
if numpy>6:
b=a-6
return b
fun((range(10))
Input In [112]
fun((range(10))
^
SyntaxError: unexpected EOF while parsing
def fun(numpy):
a=numpy+1
if numpy>6:
b=a-6
return b
fun((range(10))
fun((range(10))
^
SyntaxError: unexpected EOF while parsing