-1
我在开芝麻(python)写一个inline_script。 谁能告诉我这里有什么问题吗? (我认为它的东西很简单,但我找不到)开芝麻抵消
当我把数字放在List = [1,2,3,4,5,6,7]第一行的时候,但第二行不工作:(
BalanceList1 = range(1:7) + range(13:19) #does not work
if self.get('subject_nr') == "BalanceList1":
#here follows a list of commands
BalanceList2 = list(range(7:13))+list(range(19:25)) #does not work either
elif self.get('subject_nr') == "BalanceList2":
#other commands
'BalanceList1 =范围(1:6)+范围(13:19)'会做你想要什么。 –
我仍然得到“无效的语法” – SDahm