摘要:
python_test_0528 print("pp49_0528") print(str(10000)) ''' 字符串方法 ''' #find str1 = "with a moo-moo" pos = str1.find("moo") print("number"+repr(8)) #prin 阅读全文
摘要:
# 格式化字符串--P45 format2 = "Pi with three decimals:%.3f" from math import pi print(format2 % pi) # 字符串模板 from string import Template s = Template('$x,glo 阅读全文