以下是代码01:
s=input().split(',')
f=[]
for i in range(len(s)):
s[i]=int(str(s[i]))
n=s[:]
s.sort()
m=len(s)-1
tmp=s[m]
for k in range(len(s)):
if(tmp==n[k]):
f.append(k)
for l in range(len(f)):
print(f[l])
以下是代码02:
n=eval(input())
m=max(n)
for i in range(len(n)):
if(m==n[i]):
print(i)