摘要: def get_data(self, beginDay,endDay): url = self.domain + '/basMC/console/commonAnalysisV3/main.do' req_data = 'method=getCommonSimpleLine&beginDay=' + 阅读全文
posted @ 2019-09-20 16:44 虎皮猫 阅读(140) 评论(0) 推荐(0)
摘要: \n 表示换行\t 表示一个制表符\\ 表示 \ 字符本身 print ('Bob said \"I\'m OK\"') 任务 请将下面两行内容用Python的字符串表示并打印出来: Python was started in 1989 by "Guido". Python is free and 阅读全文
posted @ 2019-09-20 15:21 虎皮猫 阅读(306) 评论(0) 推荐(0)
摘要: 变量不仅可以是数字,还可以是任意数据类型,在Python程序中,变量是用一个变量名表示,变量名必须是大小写英文、数字和下划线(_)的组合,且不能用数字开头 a='ABC'a='XYZ'b=aprint (a) 打印结果为XYZ a='ABC'a='XYZ'b=aprint (b) 打印结果为XYZ 阅读全文
posted @ 2019-09-20 14:07 虎皮猫 阅读(204) 评论(0) 推荐(0)
摘要: 引号内,空格就表示空格,引号外,逗号表示空格 print('100+200 =',100 + 200) 100+200 = 300 print('hello','world') hello world print('hello,world') hello,world 阅读全文
posted @ 2019-09-20 11:37 虎皮猫 阅读(151) 评论(0) 推荐(0)