'''
Author: 365JHWZGo
Description: 33. 搜索旋转排序数组
Date: 2021-10-06 10:49:14
FilePath: Pythontestdemo3.py
LastEditTime: 2021-10-09 16:46:03
LastEditors: 365JHWZGo
'''
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
if target not in nums:
return -1
else:
return nums.index(target)



