代码拉取完成,页面将自动刷新
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
' contract module '
__author__ = 'Ma Cong'
import datetime
# 类
class info(object):
def __init__(self, title, mianshui, date, view_num, price, avg, shitingwei, cenggao,
area, zhuangxiu, toward, age, xiaoqu, weizhi, jingjiren, link):
'''
初始化数据结构
'''
self.title = self.excuteSting(title)
self.mianshui = self.excuteSting(mianshui)
self.date = self.excuteSting(date)
self.view_num = self.excuteSting(view_num)
self.price = self.excuteSting(price)
self.avg = self.excuteSting(avg)
self.shitingwei = self.excuteSting(shitingwei)
self.cenggao = self.excuteSting(cenggao)
self.area = self.excuteSting(area)
self.zhuangxiu = self.excuteSting(zhuangxiu)
self.toward = self.excuteSting(toward)
self.age = self.excuteSting(age)
self.xiaoqu = self.excuteSting(xiaoqu)
self.weizhi = self.excuteSting(weizhi)
self.jingjiren = self.excuteSting(jingjiren)
self.link = self.excuteSting(link)
self.shiqu = 0
def toSql(self):
return "'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s'" % \
(self.title, self.mianshui, self.date, \
self.view_num, self.price, self.avg, self.shitingwei, \
self.cenggao, self.area, self.zhuangxiu, self.toward, self.age,\
self.xiaoqu, self.weizhi, self.jingjiren, self.link, self.shiqu)
def excuteSting(self, s):
if s is str:
return s.replace(',', '')
else:
return s
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。