摘要: 3.1 重量计算 s, yearup = 50, 0.50 for i in range(10): s += yearup print("{:.3f}".format(s)) print("{:.3f}".format(0.165*s)) 50.500 8.332 51.000 8.415 51.5 阅读全文
posted @ 2025-03-23 15:10 与尔5 阅读(13) 评论(0) 推荐(0)
摘要: 3.13 s = "Python String" print( s.upper() ) print( s.lower() ) print( s.find('i') ) print( s.replace('ing', 'gni') ) print( s.split(' ') ) PYYHON STRI 阅读全文
posted @ 2025-03-23 14:27 与尔5 阅读(18) 评论(0) 推荐(0)