江泽政
江泽政
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
江泽政的博客
全部文章
(共2篇)
题解 | #字符逆序#
巧用reversed() while True: try: s = input() revS = list(reversed(s)) answer = "".join(revS) print(answer) except...
Python3
字符串
2021-11-11
0
365
题解 | #求最大连续bit数#
Python3 解题思路 try: s = input() ## 数字格式-> 二元格式 -> 清除非数字 -> 零作为间隔符号 string = bin(int(s)).replace("0b", "").split("0"...
Python3
字符串
2021-11-11
29
985