摘要:binary_num = '10000001' ones_complement = '' for bit in binary_num: ones_complement += '0' if bit == '1' else '1' print(ones_complement) #加上1 binary_n
阅读全文
posted @ 2024-05-12 22:20
®Geovin Du Dream Park™
阅读(28)评论(0)推荐(0)
摘要:from xpinyin import Pinyin #https://github.com/lxneng/xpinyin def print_hi(name): # Use a breakpoint in the code line below to debug your script. prin
阅读全文
posted @ 2024-01-06 21:57
®Geovin Du Dream Park™
阅读(17)评论(0)推荐(0)