-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