摘要: 习题:输入字符串计算其值:strr='1 - 2 * ((60-30+1*(9-2*5/3+7/3*99/4*2998+10*568/14))-(-4*3)/(16-3*2))‘ 习题之总结: 1.str是python内置函数,字符串命不能为命名str 2.字符串len和列表len长度不同 3.使用 阅读全文
posted @ 2018-02-02 16:02 bigsnowball 阅读(4419) 评论(0) 推荐(0)
摘要: C:\Python27\python.exe C:/Users/g/PycharmProjects/test/d1/intfuction.py['jiangsu', 'zhejing']请输入省:'jiangsu'jiangsu['wuxi', 'nanjing']请输入市:'wuxi'wuxi[' 阅读全文
posted @ 2017-12-07 23:04 bigsnowball 阅读(100) 评论(0) 推荐(0)
摘要: # -*- coding:UTF-8 -*-import timebl=open('b.txt','a')wl=open('w.txt','a')for i in range(3): name=raw_input("please input your name:") ps=raw_input('pl 阅读全文
posted @ 2017-12-01 16:44 bigsnowball 阅读(131) 评论(0) 推荐(0)