💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` import keyword temp = 'return' a = not keyword.iskeyword(temp) #print(a) b = ['set'] c = temp not in b #print(c) print(temp.upper()) ``` ``` import keyword list1 = [1,2,3] list2 = 'for list n ' table = ['list'] for i in list2: #print(i) if(not i=='i'): #print(i) i new = '' temp ='' for i in list2: if(i.isalpha()): temp +=i #new += temp #print(keyword.iskeyword(temp)) #print(temp in table) #print(temp) else: new += i print(new) print('1'+i+'2') #print(i) #print(temp) if(not keyword.iskeyword(temp) and (not temp in table)): temp = temp.upper() #new += temp #temp new += temp temp ='' print(new) ``` ``` new ='' new += 'a' print(new) new = new + 'b' print(new) ``` ``` new = 'ab' new1 = 'bc' a = 'd' print(new.upper) if( a not in new) and (a not in new1): print(a.upper()) print(id(new)) print(id(new.upper)) ```