我的做法类似于第二种,但是更简洁,只有一行: print(input().split(".")[0][-1])
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务