执行此代码时发生错误:TypeError:j1()缺少1个必需的位置参数:“its”
elif id == 526891231 and "/remove" in msg:
#try:
a = msg.split(' ')
its = "remove"
commanda = a[0]
mode = a[1]
file = a[2]
path = a[3]
if commanda == '/remove':
if mode == 'jail':
j1(path + '/' + file, file, its)
j2(path + '/' + file, file, its)
j3(path + '/' + file, file, its)
update()
功能描述j1=
def j1(localpath, path, file, its):
if its == 'upload':
sftp.put(localpath, path)
sender(xxx, 'JAIL-1: File uploaded successfully!' + ' [' + file + ' -> ' + path + ']')
mode = 'JAIL-1'
log(mode, file, path)
if its == 'remove':
sftp.remove(path)
sender(526891231, 'JAIL-1: File deleted successfully!' + ' [' + path + ']')
mode = 'JAIL-1'
log(mode, file, path)
有什么问题
目前没有回答
相关问题 更多 >
编程相关推荐