问卷调查 Excel 款式

<button name="button" style="color: black">原文件下载</button>

生成代码

序号

间接 range 生成即可。

提交答卷工夫

import timetime_str = time.strftime('%Y/%m/%d %H:%M:%S', time.localtime(time.time()))  # 打印按指定格局排版的工夫print(time_str)

所用工夫

import randomprint(str(random.randint(80, 600)) + "秒")

起源

间接微信即可

起源详情

间接 N/A

来自 IP

from faker import Fakerfaker = Faker("zh-CN")template = "{ipv4}({province}-{city_name})"for i in range(100):    r = template.format(ipv4=faker.ipv4(), province=faker.province(), city_name=faker.city_name())    print(r)

Excel 头部生成

间接选中 Excel 头部:

复制出如下:

1、您的性别:    2、您的年龄:    3、您的受教育水平:    4、您的工作是:    5、您是否是少数民族:    6、您的家庭是否有宗教信仰:    7、您试着理解过素食或尝试过素食:    8、(书籍、报纸、期刊)    8、(社交、互联网媒体)    8、(播送、电视)    8、(亲朋好友介绍)    9、平时您的素食类型:    10、您认为素食能够提供给身材足够的养分吗?    11、如果路过一家素食店,您会去品味吗?    12、您会成为一个素食主义者吗?    13、您认为素食主义者比那些非素食主义者更衰弱吗?    14、为了环保和衰弱,须要每周安顿一天吃素食,你是否能做到?    15、您感觉吃素对放弃衰弱和幸福有多重要?    16、您感觉吃素对升高碳排放、保护环境有多重要?    17、您对喝牛奶能补钙怎么看?    18、您是否认为肉类产品能够补充人体所需的大多数蛋白质成分    19、您认为女性在怀孕期间是否能够保持吃素吗?    20、您认为低脂纯素的饮食习惯是慢性疾病的终结者吗?    21、您有吃保健食品吗?    22、(预防疾病、促成衰弱)    22、(减肥塑身)    22、(进步静止或静止体现)    22、(加强免疫性能)    22、(进步记忆力或注意力)    22、(保护环境,爱护生灵)    22、(宗教信仰的影响)    22、(跟风随众)    22、(其余)    23、(家人敌人不了解、不认可或拥护)    23、(每天不晓得吃什么)    23、(外出就餐找不到适合的餐厅)    23、(超市和市场里可抉择食材太少)    23、(不懂得如何进行养分搭配)    23、(不晓得如何烹饪)    23、(聚餐时比拟难堪,因为其他人吃肉)    23、(单位食堂或外卖很难找到适合的饭菜)    24、(家人敌人的认可和了解)    24、(把握更多烹饪技巧,让食物变得美味和丰盛)    24、(须要学习更多营养学及中西医常识)    24、(能买到更多素食专属产品)    24、(其余)    总分

改写成 Python 字符串并生成指标数据:

s = "1、您的性别:    2、您的年龄:    3、您的受教育水平:    4、您的工作是:    5、您是否是少数民族:    6、您的家庭是否有宗教信仰:    7、您试着理解过素食或尝试过素食:    8、(书籍、报纸、期刊)    8、(社交、互联网媒体)    8、(播送、电视)    8、(亲朋好友介绍)    9、平时您的素食类型:    10、您认为素食能够提供给身材足够的养分吗?    11、如果路过一家素食店,您会去品味吗?    12、您会成为一个素食主义者吗?    13、您认为素食主义者比那些非素食主义者更衰弱吗?    14、为了环保和衰弱,须要每周安顿一天吃素食,你是否能做到?    15、您感觉吃素对放弃衰弱和幸福有多重要?    16、您感觉吃素对升高碳排放、保护环境有多重要?    17、您对喝牛奶能补钙怎么看?    18、您是否认为肉类产品能够补充人体所需的大多数蛋白质成分    19、您认为女性在怀孕期间是否能够保持吃素吗?    20、您认为低脂纯素的饮食习惯是慢性疾病的终结者吗?    21、您有吃保健食品吗?    22、(预防疾病、促成衰弱)    22、(减肥塑身)    22、(进步静止或静止体现)    22、(加强免疫性能)    22、(进步记忆力或注意力)    22、(保护环境,爱护生灵)    22、(宗教信仰的影响)    22、(跟风随众)    22、(其余)    23、(家人敌人不了解、不认可或拥护)    23、(每天不晓得吃什么)    23、(外出就餐找不到适合的餐厅)    23、(超市和市场里可抉择食材太少)    23、(不懂得如何进行养分搭配)    23、(不晓得如何烹饪)    23、(聚餐时比拟难堪,因为其他人吃肉)    23、(单位食堂或外卖很难找到适合的饭菜)    24、(家人敌人的认可和了解)    24、(把握更多烹饪技巧,让食物变得美味和丰盛)    24、(须要学习更多营养学及中西医常识)    24、(能买到更多素食专属产品)    24、(其余)    总分"s = s.replace("\t", " ")s = s.replace(":", "")r = s.split(" ")print(r)

输入:

['1、您的性别', '2、您的年龄', '3、您的受教育水平', '4、您的工作是', '5、您是否是少数民族', '6、您的家庭是否有宗教信仰', '7、您试着理解过素食或尝试过素食', '8、(书籍、报纸、期刊)', '8、(社交、互联网媒体)', '8、(播送、电视)', '8、(亲朋好友介绍)', '9、平时您的素食类型', '10、您认为素食能够提供给身材足够的养分吗?', '11、如果路过一家素食店,您会去品味吗?', '12、您会成为一个素食主义者吗?', '13、您认为素食主义者比那些非素食主义者更衰弱吗?', '14、为了环保和衰弱,须要每周安顿一天吃素食,你是否能做到?', '15、您感觉吃素对放弃衰弱和幸福有多重要?', '16、您感觉吃素对升高碳排放、保护环境有多重要?', '17、您对喝牛奶能补钙怎么看?', '18、您是否认为肉类产品能够补充人体所需的大多数蛋白质成分', '19、您认为女性在怀孕期间是否能够保持吃素吗?', '20、您认为低脂纯素的饮食习惯是慢性疾病的终结者吗?', '21、您有吃保健食品吗?', '22、(预防疾病、促成衰弱)', '22、(减肥塑身)', '22、(进步静止或静止体现)', '22、(加强免疫性能)', '22、(进步记忆力或注意力)', '22、(保护环境,爱护生灵)', '22、(宗教信仰的影响)', '22、(跟风随众)', '22、(其余)', '23、(家人敌人不了解、不认可或拥护)', '23、(每天不晓得吃什么)', '23、(外出就餐找不到适合的餐厅)', '23、(超市和市场里可抉择食材太少)', '23、(不懂得如何进行养分搭配)', '23、(不晓得如何烹饪)', '23、(聚餐时比拟难堪,因为其他人吃肉)', '23、(单位食堂或外卖很难找到适合的饭菜)', '24、(家人敌人的认可和了解)', '24、(把握更多烹饪技巧,让食物变得美味和丰盛)', '24、(须要学习更多营养学及中西医常识)', '24、(能买到更多素食专属产品)', '24、(其余)', '总分']

各个选项列表数据

对数据进行编码

sex = [1, 2]age = [1, 2, 3, 4, 5, 6]education = [1, 2, 3, 4, 5, 6, 7, 8]job = [i for i in range(1, 14)]ethnic_minorities = [1, 2]  # 少数民族 ethnic minoritiesreligion = [1, 2]  # 宗教信仰vegetarian_diet = [1, 2]  # 素食book_newspaper_magazine = [0, 1]  # (书籍、报纸、期刊)social_connection_internet_media = [0, 1]  # (社交、互联网媒体)broadcast_tv = [0, 1]  # (播送、电视)family_and_friends = [0, 1]  # (亲朋好友介绍)vegetarian_diet_type = [1, 2, 3, 4, 5, 6, 7, 8, 9]nutrition = [1, 2]  # 养分vegetarian_diet_store = [1, 2]  # 素食店vegetarian = [1, 2]  # 素食主义者healthy = [1, 2]  # 衰弱one_day_eat_vegetarian_diet = [1, 2]  # 一天吃素食important = [1, 2, 3, 4, 5]  # 重要environment_important = [1, 2, 3, 4, 5]  # 保护环境有多重要milk = [1, 2, 3, 4]  # 牛奶meat = [1, 2, 3]  # 肉类pregnancy = [1, 2, 3, 4]  # 怀孕lowe_fat = [1, 2, 3]health_food = [1, 2, 3, 4, 5, 6]  # 保健食品health = [0, 1]  # (预防疾病、促成衰弱)keep_diet = [0, 1]  # (减肥塑身)exercise = [0, 1]  # (进步静止或静止体现)immune = [0, 1]  # (加强免疫性能)memory = [0, 1]  # (进步记忆力或注意力)protection = [0, 1]  # (保护环境,爱护生灵)religione_influence = [0, 1]  # 宗教信仰的影响follow = [0, 1]  # 跟风随众other = [0, 1]  # 其余incomprehension = [0, 1]  # 家人敌人不了解、不认可或拥护no_eat = [0, 1]  # 每天不晓得吃什么right_restaurant = [0, 1]  # 外出就餐找不到适合的餐厅less = [0, 1]  # 超市和市场里可抉择食材太少match = [0, 1]  # 不懂得如何进行养分搭配cook = [0, 1]  # 不晓得如何烹饪awkward = [0, 1]  # 聚餐时比拟难堪,因为其他人吃肉take_out = [0, 1]  # 外卖accept = [0, 1]  # 家人敌人的认可和了解technical = [0, 1]  # 技巧knowledge = [0, 1]  # 常识product = [0, 1]  # 产品

生成

开始汇总下面的代码:

import randomimport time  # 引入time模块import fakerimport xlwtsex = [1, 2]age = [1, 2, 3, 4, 5, 6]education = [1, 2, 3, 4, 5, 6, 7, 8]job = [i for i in range(1, 14)]ethnic_minorities = [1, 2]  # 少数民族 ethnic minoritiesreligion = [1, 2]  # 宗教信仰vegetarian_diet = [1, 2]  # 素食book_newspaper_magazine = [0, 1]  # (书籍、报纸、期刊)social_connection_internet_media = [0, 1]  # (社交、互联网媒体)broadcast_tv = [0, 1]  # (播送、电视)family_and_friends = [0, 1]  # (亲朋好友介绍)vegetarian_diet_type = [1, 2, 3, 4, 5, 6, 7, 8, 9]nutrition = [1, 2]  # 养分vegetarian_diet_store = [1, 2]  # 素食店vegetarian = [1, 2]  # 素食主义者healthy = [1, 2]  # 衰弱one_day_eat_vegetarian_diet = [1, 2]  # 一天吃素食important = [1, 2, 3, 4, 5]  # 重要environment_important = [1, 2, 3, 4, 5]  # 保护环境有多重要milk = [1, 2, 3, 4]  # 牛奶meat = [1, 2, 3]  # 肉类pregnancy = [1, 2, 3, 4]  # 怀孕lowe_fat = [1, 2, 3]health_food = [1, 2, 3, 4, 5, 6]  # 保健食品health = [0, 1]  # (预防疾病、促成衰弱)keep_diet = [0, 1]  # (减肥塑身)exercise = [0, 1]  # (进步静止或静止体现)immune = [0, 1]  # (加强免疫性能)memory = [0, 1]  # (进步记忆力或注意力)protection = [0, 1]  # (保护环境,爱护生灵)religione_influence = [0, 1]  # 宗教信仰的影响follow = [0, 1]  # 跟风随众other = [0, 1]  # 其余incomprehension = [0, 1]  # 家人敌人不了解、不认可或拥护no_eat = [0, 1]  # 每天不晓得吃什么right_restaurant = [0, 1]  # 外出就餐找不到适合的餐厅less = [0, 1]  # 超市和市场里可抉择食材太少match = [0, 1]  # 不懂得如何进行养分搭配cook = [0, 1]  # 不晓得如何烹饪awkward = [0, 1]  # 聚餐时比拟难堪,因为其他人吃肉take_out = [0, 1]  # 外卖accept = [0, 1]  # 家人敌人的认可和了解technical = [0, 1]  # 技巧knowledge = [0, 1]  # 常识product = [0, 1]  # 产品head_data = ['序号', '提交答卷工夫', '所用工夫', '起源', '起源详情', '来自IP',             '1、您的性别', '2、您的年龄', '3、您的受教育水平', '4、您的工作是', '5、您是否是少数民族',             '6、您的家庭是否有宗教信仰', '7、您试着理解过素食或尝试过素食', '8、(书籍、报纸、期刊)', '8、(社交、互联网媒体)',             '8、(播送、电视)', '8、(亲朋好友介绍)', '9、平时您的素食类型', '10、您认为素食能够提供给身材足够的养分吗?',             '11、如果路过一家素食店,您会去品味吗?', '12、您会成为一个素食主义者吗?',             '13、您认为素食主义者比那些非素食主义者更衰弱吗?', '14、为了环保和衰弱,须要每周安顿一天吃素食,你是否能做到?',             '15、您感觉吃素对放弃衰弱和幸福有多重要?', '16、您感觉吃素对升高碳排放、保护环境有多重要?',             '17、您对喝牛奶能补钙怎么看?', '18、您是否认为肉类产品能够补充人体所需的大多数蛋白质成分',             '19、您认为女性在怀孕期间是否能够保持吃素吗?', '20、您认为低脂纯素的饮食习惯是慢性疾病的终结者吗?',             '21、您有吃保健食品吗?', '22、(预防疾病、促成衰弱)', '22、(减肥塑身)', '22、(进步静止或静止体现)',             '22、(加强免疫性能)', '22、(进步记忆力或注意力)', '22、(保护环境,爱护生灵)', '22、(宗教信仰的影响)',             '22、(跟风随众)', '22、(其余)', '23、(家人敌人不了解、不认可或拥护)', '23、(每天不晓得吃什么)',             '23、(外出就餐找不到适合的餐厅)', '23、(超市和市场里可抉择食材太少)', '23、(不懂得如何进行养分搭配)',             '23、(不晓得如何烹饪)', '23、(聚餐时比拟难堪,因为其他人吃肉)', '23、(单位食堂或外卖很难找到适合的饭菜)',             '24、(家人敌人的认可和了解)', '24、(把握更多烹饪技巧,让食物变得美味和丰盛)',             '24、(须要学习更多营养学及中西医常识)', '24、(能买到更多素食专属产品)', '24、(其余)', '总分']# time_str = time.strftime('%Y/%m/%d %H:%M:%S', time.localtime(time.time()))  # 打印按指定格局排版的工夫wb = xlwt.Workbook()  # 新建一个 workbook 对象sheet = wb.add_sheet('sheet')for head in head_data:    sheet.write(0, head_data.index(head), head)    # sheet.write(行, 列, 写入数据)faker = faker.Faker("zh-CN")template = "{ipv4}({province}-{city_name})"for row in range(1, 200):    sheet.write(row, 0, row)  # 序号    sheet.write(row, 1, time.strftime('%Y/%m/%d %H:%M:%S', time.localtime(time.time())))  # 提交答卷工夫    sheet.write(row, 2, str(random.randint(80, 600)) + "秒")  # 所用工夫    sheet.write(row, 3, random.choice(["微信", "QQ"]))  # 所用工夫    sheet.write(row, 4, "N/A")    sheet.write(row, 5, template.format(ipv4=faker.ipv4(), province=faker.province(), city_name=faker.city_name()))    sheet.write(row, 6, random.choice(sex))  # 性别    sheet.write(row, 7, random.choice(age))  # 年龄    sheet.write(row, 8, random.choice(education))    sheet.write(row, 9, random.choice(job))    sheet.write(row, 10, random.choice(ethnic_minorities))    sheet.write(row, 11, random.choice(religion))    sheet.write(row, 12, random.choice(vegetarian_diet))    sheet.write(row, 13, random.choice(book_newspaper_magazine))    sheet.write(row, 14, random.choice(social_connection_internet_media))    sheet.write(row, 15, random.choice(broadcast_tv))    sheet.write(row, 16, random.choice(family_and_friends))    sheet.write(row, 17, random.choice(vegetarian_diet_type))    sheet.write(row, 18, random.choice(nutrition))    sheet.write(row, 19, random.choice(vegetarian_diet_store))    sheet.write(row, 20, random.choice(vegetarian))    sheet.write(row, 21, random.choice(healthy))    sheet.write(row, 22, random.choice(one_day_eat_vegetarian_diet))    sheet.write(row, 23, random.choice(important))    sheet.write(row, 24, random.choice(environment_important))    sheet.write(row, 25, random.choice(milk))    sheet.write(row, 26, random.choice(meat))    sheet.write(row, 27, random.choice(pregnancy))    sheet.write(row, 28, random.choice(lowe_fat))    sheet.write(row, 29, random.choice(health_food))    sheet.write(row, 30, random.choice(health))    sheet.write(row, 31, random.choice(keep_diet))    sheet.write(row, 32, random.choice(exercise))    sheet.write(row, 33, random.choice(immune))    sheet.write(row, 34, random.choice(memory))    sheet.write(row, 35, random.choice(protection))    sheet.write(row, 36, random.choice(religione_influence))    sheet.write(row, 37, random.choice(follow))    sheet.write(row, 38, random.choice(other))    sheet.write(row, 39, random.choice(incomprehension))    sheet.write(row, 40, random.choice(no_eat))    sheet.write(row, 41, random.choice(right_restaurant))    sheet.write(row, 42, random.choice(less))    sheet.write(row, 43, random.choice(match))    sheet.write(row, 44, random.choice(cook))    sheet.write(row, 45, random.choice(awkward))    sheet.write(row, 46, random.choice(take_out))    sheet.write(row, 47, random.choice(accept))    sheet.write(row, 48, random.choice(technical))    sheet.write(row, 49, random.choice(knowledge))    sheet.write(row, 50, random.choice(product))    sheet.write(row, 51, random.choice(other))wb.save("demo200.xls")
import randomimport time  # 引入time模块import fakerimport xlwtsex = [1, 2]age = [1, 2, 3, 4, 5, 6]education = [1, 2, 3, 4, 5, 6, 7, 8]job = [i for i in range(1, 14)]ethnic_minorities = [1, 2]  # 少数民族 ethnic minoritiesreligion = [1, 2]  # 宗教信仰vegetarian_diet = [1, 2]  # 素食book_newspaper_magazine = [0, 1]  # (书籍、报纸、期刊)social_connection_internet_media = [0, 1]  # (社交、互联网媒体)broadcast_tv = [0, 1]  # (播送、电视)family_and_friends = [0, 1]  # (亲朋好友介绍)vegetarian_diet_type = [1, 2, 3, 4, 5, 6, 7, 8, 9]nutrition = [1, 2]  # 养分vegetarian_diet_store = [1, 2]  # 素食店vegetarian = [1, 2]  # 素食主义者healthy = [1, 2]  # 衰弱one_day_eat_vegetarian_diet = [1, 2]  # 一天吃素食important = [1, 2, 3, 4, 5]  # 重要environment_important = [1, 2, 3, 4, 5]  # 保护环境有多重要milk = [1, 2, 3, 4]  # 牛奶meat = [1, 2, 3]  # 肉类pregnancy = [1, 2, 3, 4]  # 怀孕lowe_fat = [1, 2, 3]health_food = [1, 2, 3, 4, 5, 6]  # 保健食品health = [0, 1]  # (预防疾病、促成衰弱)keep_diet = [0, 1]  # (减肥塑身)exercise = [0, 1]  # (进步静止或静止体现)immune = [0, 1]  # (加强免疫性能)memory = [0, 1]  # (进步记忆力或注意力)protection = [0, 1]  # (保护环境,爱护生灵)religione_influence = [0, 1]  # 宗教信仰的影响follow = [0, 1]  # 跟风随众other = [0, 1]  # 其余incomprehension = [0, 1]  # 家人敌人不了解、不认可或拥护no_eat = [0, 1]  # 每天不晓得吃什么right_restaurant = [0, 1]  # 外出就餐找不到适合的餐厅less = [0, 1]  # 超市和市场里可抉择食材太少match = [0, 1]  # 不懂得如何进行养分搭配cook = [0, 1]  # 不晓得如何烹饪awkward = [0, 1]  # 聚餐时比拟难堪,因为其他人吃肉take_out = [0, 1]  # 外卖accept = [0, 1]  # 家人敌人的认可和了解technical = [0, 1]  # 技巧knowledge = [0, 1]  # 常识product = [0, 1]  # 产品head_data = ['序号', '提交答卷工夫', '所用工夫', '起源', '起源详情', '来自IP',             '1、您的性别', '2、您的年龄', '3、您的受教育水平', '4、您的工作是', '5、您是否是少数民族',             '6、您的家庭是否有宗教信仰', '7、您试着理解过素食或尝试过素食', '8、(书籍、报纸、期刊)', '8、(社交、互联网媒体)',             '8、(播送、电视)', '8、(亲朋好友介绍)', '9、平时您的素食类型', '10、您认为素食能够提供给身材足够的养分吗?',             '11、如果路过一家素食店,您会去品味吗?', '12、您会成为一个素食主义者吗?',             '13、您认为素食主义者比那些非素食主义者更衰弱吗?', '14、为了环保和衰弱,须要每周安顿一天吃素食,你是否能做到?',             '15、您感觉吃素对放弃衰弱和幸福有多重要?', '16、您感觉吃素对升高碳排放、保护环境有多重要?',             '17、您对喝牛奶能补钙怎么看?', '18、您是否认为肉类产品能够补充人体所需的大多数蛋白质成分',             '19、您认为女性在怀孕期间是否能够保持吃素吗?', '20、您认为低脂纯素的饮食习惯是慢性疾病的终结者吗?',             '21、您有吃保健食品吗?', '22、(预防疾病、促成衰弱)', '22、(减肥塑身)', '22、(进步静止或静止体现)',             '22、(加强免疫性能)', '22、(进步记忆力或注意力)', '22、(保护环境,爱护生灵)', '22、(宗教信仰的影响)',             '22、(跟风随众)', '22、(其余)', '23、(家人敌人不了解、不认可或拥护)', '23、(每天不晓得吃什么)',             '23、(外出就餐找不到适合的餐厅)', '23、(超市和市场里可抉择食材太少)', '23、(不懂得如何进行养分搭配)',             '23、(不晓得如何烹饪)', '23、(聚餐时比拟难堪,因为其他人吃肉)', '23、(单位食堂或外卖很难找到适合的饭菜)',             '24、(家人敌人的认可和了解)', '24、(把握更多烹饪技巧,让食物变得美味和丰盛)',             '24、(须要学习更多营养学及中西医常识)', '24、(能买到更多素食专属产品)', '24、(其余)', '总分']# time_str = time.strftime('%Y/%m/%d %H:%M:%S', time.localtime(time.time()))  # 打印按指定格局排版的工夫wb = xlwt.Workbook()  # 新建一个 workbook 对象sheet = wb.add_sheet('sheet')for head in head_data:    sheet.write(0, head_data.index(head), head)    # sheet.write(行, 列, 写入数据)faker = faker.Faker("zh-CN")template = "{ipv4}({province}-{city_name})"for row in range(1, 200):    sheet.write(row, 0, row)  # 序号    sheet.write(row, 1, time.strftime('%Y/%m/%d %H:%M:%S', time.localtime(time.time())))  # 提交答卷工夫    sheet.write(row, 2, str(random.randint(80, 600)) + "秒")  # 所用工夫    sheet.write(row, 3, random.choice(["微信", "QQ"]))  # 所用工夫    sheet.write(row, 4, "N/A")    sheet.write(row, 5, template.format(ipv4=faker.ipv4(), province=faker.province(), city_name=faker.city_name()))    sheet.write(row, 6, random.choice(sex))  # 性别    sheet.write(row, 7, random.choice(age))  # 年龄    sheet.write(row, 8, random.choice(education))    sheet.write(row, 9, random.choice(job))    sheet.write(row, 10, random.choice(ethnic_minorities))    sheet.write(row, 11, random.choice(religion))    sheet.write(row, 12, random.choice(vegetarian_diet))    sheet.write(row, 13, random.choice(book_newspaper_magazine))    sheet.write(row, 14, random.choice(social_connection_internet_media))    sheet.write(row, 15, random.choice(broadcast_tv))    sheet.write(row, 16, random.choice(family_and_friends))    sheet.write(row, 17, random.choice(vegetarian_diet_type))    sheet.write(row, 18, random.choice(nutrition))    sheet.write(row, 19, random.choice(vegetarian_diet_store))    sheet.write(row, 20, random.choice(vegetarian))    sheet.write(row, 21, random.choice(healthy))    sheet.write(row, 22, random.choice(one_day_eat_vegetarian_diet))    im23 = random.choice(important)    sheet.write(row, 23, im23)    im24 = random.choice(environment_important)    sheet.write(row, 24, im24)    sheet.write(row, 25, random.choice(milk))    sheet.write(row, 26, random.choice(meat))    sheet.write(row, 27, random.choice(pregnancy))    sheet.write(row, 28, random.choice(lowe_fat))    sheet.write(row, 29, random.choice(health_food))    sheet.write(row, 30, random.choice(health))    sheet.write(row, 31, random.choice(keep_diet))    sheet.write(row, 32, random.choice(exercise))    sheet.write(row, 33, random.choice(immune))    sheet.write(row, 34, random.choice(memory))    sheet.write(row, 35, random.choice(protection))    sheet.write(row, 36, random.choice(religione_influence))    sheet.write(row, 37, random.choice(follow))    sheet.write(row, 38, random.choice(other))    sheet.write(row, 39, random.choice(incomprehension))    sheet.write(row, 40, random.choice(no_eat))    sheet.write(row, 41, random.choice(right_restaurant))    sheet.write(row, 42, random.choice(less))    sheet.write(row, 43, random.choice(match))    sheet.write(row, 44, random.choice(cook))    sheet.write(row, 45, random.choice(awkward))    sheet.write(row, 46, random.choice(take_out))    sheet.write(row, 47, random.choice(accept))    sheet.write(row, 48, random.choice(technical))    sheet.write(row, 49, random.choice(knowledge))    sheet.write(row, 50, random.choice(product))    sheet.write(row, 51, random.choice(other))    sheet.write(row, 52, im23 + im24)wb.save("demo300.xls")
欢送关注我公众号:AI悦创,有更多更好玩的等你发现!::: details 公众号:AI悦创【二维码】[外链图片转存失败,源站可能有防盗链机制,倡议将图片保留下来间接上传(img-QUfyZhWa-1661159016457)(/gzh.jpg)]:::::: info AI悦创·编程一对一AI悦创·推出辅导班啦,包含「Python 语言辅导班、C++ 辅导班、java 辅导班、算法/数据结构辅导班、少儿编程、pygame 游戏开发」,全部都是一对一教学:一对一辅导 + 一对一答疑 + 安排作业 + 我的项目实际等。当然,还有线下线上摄影课程、Photoshop、Premiere 一对一教学、QQ、微信在线,随时响应!微信:JiabcdefhC++ 信息奥赛题解,长期更新!长期招收一对一中小学信息奥赛集训,莆田、厦门地区有机会线下上门,其余地区线上。微信:Jiabcdefh办法一:[QQ](http://wpa.qq.com/msgrd?v=3&uin=1432803776&site=qq&menu=yes)办法二:微信:Jiabcdefh