def a(nn):
with open(“pdf分割信息.txt”, “a+”, encoding=“utf8”) as f:
f.write(str(nn) + “\n”)
def c(a)
print(a)
li = [1,2,6,4,“6”]
a(li)
c(“55”)
调用函数名和形参同样会报’str’ object is not callable错误
2024-01-30 08:55:40
def a(nn):
with open(“pdf分割信息.txt”, “a+”, encoding=“utf8”) as f:
f.write(str(nn) + “\n”)
def c(a)
print(a)
li = [1,2,6,4,“6”]
a(li)
c(“55”)
调用函数名和形参同样会报’str’ object is not callable错误