我有以下功能:
def myfunc(str):
x = str # i need to copy str into x , not but ref
我测试过copy Module,但没有用。
我的问题是,如何 icopy而不是by refstr 变成 x?
我有以下功能:
def myfunc(str):
x = str # i need to copy str into x , not but ref
我测试过copy Module,但没有用。
我的问题是,如何 icopy而不是by refstr 变成 x?