python错题
2021-06-08 12:03
标签:find mic pytho input src font width alt bcd 1. str1 = input() # print(str1.find(c[0])) python错题 标签:find mic pytho input src font width alt bcd 原文地址:https://www.cnblogs.com/averyfork/p/14529288.html
s = ‘1234567890abcdefABCDEF‘
c = ""
for item in str1:
if item in s:
c = c + item
# print(str1.find(‘-‘))
if c == ‘‘:
print(‘0‘)
elif str1.find(c[0])>str1.find(‘-‘):
print(-int(c,16))
else:
print(int(c,16))
上一篇:JAVA基础复习(二)
下一篇:Python-进程