Python读写xls表格内容

xlrd:读取xls内容

xlwt:内容写到xls。

import xlrd
import xlwt

src_set = []
dst_set = []
file_name = "Reverse"

def read_xls():
    file_path = file_name + ".xls"
    xls_file = xlrd.open_workbook(file_path)
    xls_sheet1 = xls_file.sheets()[0]  #第一个sheet
    nrows = xls_sheet1.nrows  #行数
    for index in range(nrows):
        row_value = xls_sheet1.cell(index, 0)  #第几行第一列
        src_set.append(str(row_value.value))

def write_xls():
    work_book = xlwt.workbook(encoding='utf-8')
    sheet = work_book.add_sheet("result")  #增加sheet
    index = 0
    for result in dst_set:
        print(result)
        sheet.write(index, 0, result[0])  #第几行第一列
        sheet.write(index, 1, result[1])  #第几行第二列

    work_book.save(file_name + "_result_"  + datetime.datetime.now().strftime("%Y%m%d%H%M%S") + ".xls")
  

注意:不支持xlsx格式,可以先把xlsx另存为xls格式。

目前状态良好!公园内孔雀被宠物狗咬事件后续

文章来源于互联网:目前状态良好!公园内孔雀被宠物狗咬事件后续

petssky
10580
文章
49
评论

2023-08-03

评论1,764 378字阅读1分15秒

日前,网络流传一则

宠物狗追咬笼中孔雀的视频,

引发广大网友的关注。

视频显示,

一只未拴绳的宠物狗钻进笼子里,

疯狂地追咬白孔雀,

笼中的孔雀被吓得四处逃窜。

据了解,

事发点为百色沙滩休闲公园。

8月2日,记者向百色沙滩休闲公园相关负责人了解情况。“事发当天,狗主人在第一时间与我们取得联系,并且认错态度诚恳,经双方友好协商后,已达成和解协议。”百色沙滩休闲公园相关负责人告诉记者,7月31日中午,一女子在公园萌宠小乐园区附近遛狗,因未拴绳,宠物狗钻进笼子追咬孔雀。当时工作人员及时赶到现场,狗主人也进到笼子里把狗赶了出来。

事发后,工作人员已对孔雀笼进行改造,在笼子的底部围了一层厚实的铁丝网。

“目前,孔雀已经被公园工作人员运送到安全区域救治。”公园相关负责人表示,事发后,公园立即联系了兽医到现场对孔雀进行诊断和救治。目前,受伤孔雀的伤口已经得到妥善的处理,状态良好。

欢迎关注
喜欢本网站,就扫一扫,关注微信公众号,有惊喜哦~

谁都无法替代你:爸爸出门后,它一直在阳台等待

文章来源于互联网:谁都无法替代你:爸爸出门后,它一直在阳台等待

petssky
10575
文章
49
评论

2023-07-26来源:狗狗猫咪宠物控

评论3,210 431字阅读1分26秒

和主人一起生活在秘鲁的Toby,

是一个患有分离焦虑症的狗子。

谁都无法替代你:爸爸出门后,它一直在阳台等待

每天早上,

当它在阳台上目送男主人离开后,

它会一直坐在那儿等着。

任何人和事都不能引起它的兴趣,

它只是固执的等待着。

然后确认主人不会回来,

表情越来越悲伤,

时不时还会发出几声悲伤的嚎叫。

是不是狗子自己在家太孤单了呢?

其实,它有一个玩得很好的同类小伙伴,

而且家里也有其他主人在,

但它只想要它的“爸爸”。

即使家里人陪伴它,

它也是一直等着爸爸回家。

有时候实在是困得不行,

它也会蜷缩在阳台上休息,

但它从来不肯直接睡觉。

直到主人回到家后,

它确认主人就在身边后,

才会回到自己的窝里,

安心地进入梦乡。

知道爱犬一直在等自己,

主人也总是努力能早点回家,

平时要是出去玩,

也总是会带上Toby一起。

而只要在主人的身边,

Toby就能敞开心扉,

做一个欢乐的毛孩子。

脸上也一扫阴霾,

绽放大大的笑容。

爸爸在身边,

和小同伴在海滩上也玩耍得很开心!

依偎在爸爸身上,

就是最幸福的日子。

谁都无法替代你:爸爸出门后,它一直在阳台等待

有主人陪伴时,它活泼又快乐,

爱玩爱闹爱笑,仿佛没有任何烦恼。

欢迎关注
喜欢本网站,就扫一扫,关注微信公众号,有惊喜哦~

牧羊犬任劳任怨当大猫保姆,没想大猫长大却成了它最大的靠山!

文章来源于互联网:牧羊犬任劳任怨当大猫保姆,没想大猫长大却成了它最大的靠山!

petssky
10575
文章
49
评论

2023-07-26

评论2,479 299字阅读0分59秒

南非的一位猎场管理员Ashley Gombert

他从湖里救起了几只落难的小老虎

却发现他养的牧羊犬Solo对这些老虎非常友善

而且其中有一只小老虎特别喜欢跟着Solo

完全就把牠当成是老大一样在崇拜!

小老虎一开始被救起时还非常虚弱

Solo就会非常贴心的照顾它

它们的友谊就这样慢慢的培养起来了

主人要进城里时它们也会一起跳上吉普车

根本就没有人能把它们分开!

不过身为老大当然也要发挥大哥的威严

毕竟牧羊犬的天性还是在的

虽然这里没有羊让它管理,那就改牧老虎吧!

牧羊犬任劳任怨当大猫保姆,没想大猫长大却成了它最大的靠山!

时间过得很快

不知不觉中小老虎也渐渐长大

牧羊犬任劳任怨当大猫保姆,没想大猫长大却成了它最大的靠山!

后来小老虎也都长得比Solo还要大只了

但它们的感情依旧不变

一看就知道老大的地位也没变

有这样硬的后台,太牛了……

欢迎关注
喜欢本网站,就扫一扫,关注微信公众号,有惊喜哦~

铲屎官晒出狗子成长照,网友:这猴子居然还活着?

文章来源于互联网:铲屎官晒出狗子成长照,网友:这猴子居然还活着?

petssky
10575
文章
49
评论

2023-07-26

评论2,682 277字阅读0分55秒

网友家的雪橇犬可可,小时候很是呆萌可爱,抱着只比自己小一号的猴子玩偶睡觉的画面,也是很治愈了…

而一年后,铲屎官拍了同款照片,本意是想感叹,狗子这简直就像是吹气球般膨胀大的!

但网友注意力却跑偏了:

猴子好强啊,竟然还活着!!!

不过看着猴子玩偶这炸毛的样子,就知道它这一年过得也不容易…

铲屎官晒出狗子成长照,网友:这猴子居然还活着?

铲屎官也表示猴子是家里最长寿的玩偶了,就是不知道它还能经受多少摧残…

毕竟曾经那个少年!

已经变成了小霸王!

其实狗狗和部分人类一样,会对童年时期的某个物品产生情感依赖,所以可可大概率不会伤害猴子玩偶…

但玩疯了之后,就不一定了,建议铲屎官还是先备个同款,以防万一!

欢迎关注
喜欢本网站,就扫一扫,关注微信公众号,有惊喜哦~

笑喷!检察院打电话找我家的狗,说它卷进了金融诈骗

文章来源于互联网:笑喷!检察院打电话找我家的狗,说它卷进了金融诈骗

petssky
10575
文章
49
评论

2023-07-26

评论2,870 300字阅读1分0秒

前几天,一位网友分享了一件事

把大家都逗笑了

他说

以前他收快递用的是家里狗的名字

因为嫌麻烦

每次也不撕单号就扔掉了

本来一直以来没出什么差错

但那天他接到一个电话

对方说是检察院的

找家里的狗

说它被牵扯进了一起金融诈骗

网友一听就明白了

对方是个骗子

于是回答他说:

你找它啊,它吃完狗粮正睡觉呢

不用说也知道

网友家狗的名字是什么类型

有名有姓那种哈哈哈!

话说

给狗子取人名的主人还不少

评论里有很多人说

遇到过这种事

一位妹子说

它家狗狗随她老公姓冯

叫冯果果

有一天接到电话,说找冯女士

她正一头雾水呢

对方接着说

冯果果女士……

妹子一听乐了

打断对方说

冯果果正在我脚下吃零食呢

看到这儿真的被逗笑了

养只狗用处可真多啊

谁能想到

用它的名还能防骗呐!

欢迎关注
喜欢本网站,就扫一扫,关注微信公众号,有惊喜哦~

借合肥宠物经济东风,巢湖希德罗宠物大健康产业园建成投产

文章来源于互联网:借合肥宠物经济东风,巢湖希德罗宠物大健康产业园建成投产

petssky
10580
文章
49
评论

2023-07-31

评论4,064 1891字阅读6分18秒

近日,希德罗(合肥)宠物用品有限公司向安徽省农业农村厅申报添加剂预混合饲料生产许可,涉及固态、半固态及液态添加剂预混合饲料三大类,为国内少数全品类宠物添加剂预混合饲料生产企业。生产许可申请通过现场验收并2023年7月29日在安徽省农业农村厅网站公示,标志着希德罗宠物大健康产业园项目投产运营进入实质性投产阶段,希德罗宠物大健康产业园必将成为合肥宠物经济高质量发展又一主要策源地。

项目得到了来自巢湖市委、市政府全力支持,项目所在地巢湖市中垾镇更是成立项目专班确保产业园建设快速推进,在市农业农村局、市投促中心、市自规局、市住建局、市经信局、市环保局、市交通局等部门关怀下希德罗宠物大健康产业园一期工程顺利建设完成、具备投产条件。

2023年5月5日上午,省委常委、市委书记虞爱华主持召开市委常委会扩大会议,深入学习贯彻4月28日中央政治局会议精神,分析总结今年以来全市经济运行情况,部署下一步重点工作。提出专班推进宠物经济等新经济业态发展,精准提供政策支持、法律服务和舆论保障,不断开辟新赛道、塑造新优势。

希德罗宠物大健康产业园剑指宠物健康市场的变革,共同助力宠物大健康产业在江淮地区的持续高质量发展,积极响应合肥市发展宠物经济的政策号召。截止发稿前巢湖希德罗宠物大健康产业园已入驻企业有:安徽希德罗生物科技有限公司、希德罗(合肥)宠物用品有限公司、希德罗动物药业(合肥)有限公司、合肥贝利亚宠物医疗管理有限公司、希德罗宠物大健康研究院等相关企业。产业涉及宠物大健康领域宠物营养临床研究、宠物药物及诊断试剂盒研发、宠物食品生产制造、宠物营养补充剂生产制造和宠物医疗等。

入驻企业安徽希德罗生物科技有限公司已与安徽国际商务职业学院共同签约、成立新媒体产教融合中心,与安徽科技学院动物科学学院、池州职业技术学院生物工程系等相关高校开展产学研合作。同时,成立希德罗(合肥)宠物大健康研究院,着力提高科技创新驱动能力,积极为宠物大健康领域的宠物医疗和宠物营养产业发展赋能。

入驻企业希德罗(合肥)宠物用品有限公司兽用(宠物)诊断试剂盒及宠物食品项目一期已开始具备部分投产条件,年产2000万瓶/盒宠物营养补充剂车间、2条万吨高端宠物主粮生产线,将在2023年8月至10月陆续投产。投产达产后,产值不低于10亿元/年。

据悉,希德罗宠物大健康产业园项目一期建设宠物大健康研究院、宠物用品直播电商运营中心、宠物食品生产基地及兽用(宠物)诊断试剂盒等;二期项目建设聚焦宠物产业上下游配套生产制造基地,聚焦智能宠物用品、宠物玩具、宠物药品等。预计2025年前后产业园建设全部完成及达产,可实现年产值50亿元。希德罗宠物大健康产业园将极大带动宠物智能玩具、宠物家居用品、宠物食品及宠物医疗等相关产业协同发展,着力打造合肥地区宠物经济发展的重要策源地。

作为合肥宠物经济创新与产学研的转化园区,希德罗宠物大健康产业园将聚焦宠物营养科研技术、宠物医药研发、宠物食品及保健产品研发等产业链条,不断拓宽业务面和业务深度。推动科技成果转化,为宠物健康产业“延链”“强链”。

希德罗宠物大健康产业园负责人谢翔先生2022年疫情期间敏锐察觉宠物经济大有可为,果断投资1.8亿元在合肥巢湖市开建希德罗宠物大健康产业园项目。谢翔先生有安徽农业大学畜牧兽医专业学科背景,是民建安徽省十届农业与农村委员会副主任,他本人对市场和相关政策敏锐度极高,他表示,近期合肥市提出要在合肥打造2-3家宠物产业园,努力建成千亿级别产业园,要引进培育头部企业引领全市宠物经济更好发展。相信合肥市未来会有更多相关助力产业发展的政策推出和落地,企业在干事业的过程中就更有信心和底气。合肥宠物经济的快速发展是极具想象空间和快速高质量发展潜力的,企业只要踏实肯干把握政策和市场导向就一定会取得大成绩、大发展。

5月13日,市农业农村局围绕宠物经济发展,深入宠物饲料、宠物药品、宠物医疗器械等生产企业开展宠物经济专题调研。刘正义强调,要立足合肥宠物产业发展基础,做好“规范+规划”文章,进一步做好行业调研和政策研究,推动合肥宠物产业高质高效发展。

7月12日下午,市农业农村局召开宠物经济工作座谈会,会上提出目标,要在合肥打造2-3家宠物产业园,努力建成千亿级别产业园,要引进培育头部企业引领全市宠物经济更好发展。

未来,希德罗宠物大健康产业园还将在合肥市推进宠物经济战略的引导下,依托于企业雄厚的专业研发、将吸引更多合作企业的不断加入。立足巢湖市夯实希德罗宠物大健康产业园建设,做强产业链,一定能为合肥宠物经济产业大发展创造无限价值,成为国内重要的宠物经济发展一极。

欢迎关注
喜欢本网站,就扫一扫,关注微信公众号,有惊喜哦~

AI-Generated Deepfakes Becoming Harder to Spot, Warns Secta Labs CEO

文章来源于互联网:AI-Generated Deepfakes Becoming Harder to Spot, Warns Secta Labs CEO

Artificial Intelligence (AI) is revolutionizing numerous sectors, but with the boon comes the bane. AI image generators are becoming more sophisticated, making the task of detecting deepfakes increasingly difficult.

This issue is causing alarm among global leaders and law enforcement agencies who are concerned about the impact of AI-generated deepfakes on social media and in conflict zones.

“We’re getting into an era where we can no longer believe what we see,” says Marko Jak, co-founder and CEO of Secta Labs. “Right now, it’s easier because the deepfakes are not that good yet, and sometimes you can see it’s obvious.”


Jak speculates that we are nearing a point—possibly within a year—where discerning a fake image at first glance will be impossible.

His insights should be taken seriously as he is the CEO of Secta Labs, an AI-image generator company.

The Rising Concerns about Deepfakes

A recent trend in AI-generated deepfakes has sparked outrage and concern. Deepfakes of murder victims have been appearing online, designed to evoke strong emotional reactions and gain clicks and likes.

This alarming trend emphasizes the urgency for more efficient ways to detect deepfakes.

Jak’s Austin-based startup, Secta Labs, which he co-founded in 2023, focuses on creating high-quality AI-generated images.

Secta Labs views its users as the owners of the AI models generated from their data, while the company serves as custodians creating images from these models.

The Call for AI Regulation

The potential misuse of advanced AI models has prompted world leaders to push for immediate action on AI regulation.

This has also led to companies like Meta, the creators of the new AI-generated voice platform Voicebox, deciding against releasing their advanced tools to the public.

“It’s also necessary to strike the right balance between openness with responsibility,” a Meta spokesperson shared.

Deepfakes: A Tool for Misinformation

Earlier this month, the U.S. Federal Bureau of Investigation warned of AI deepfake extortion scams and criminals using photos and videos from social media to create fake content.

In the face of the growing deepfake problem, Jak suggests that the solution may not lie solely in detecting deepfakes, but rather in exposing them.

“AI is the first way you could spot [a deepfake],” Jak said. “There are people building artificial intelligence that you can put an image into like a video, and the AI can tell you if it was generated by AI.”

Technology to Counter Deepfakes

Jak acknowledges that an “AI arms race” is emerging with bad actors creating more sophisticated deepfakes to counter the technology designed to detect them.

Jak proposes that technology such as blockchain and cryptography might offer a solution to the deepfake problem by authenticating an image’s origin.

He also suggests a low-tech solution — harnessing the collective wisdom of internet users.

“A tweet can be misinformation just like a deepfake can be,” he said. Jak believes that social media platforms could benefit from leveraging their communities to verify whether the circulated content is genuine.

As AI advances, the battle against deepfakes continues, underlining the importance of both technological and social solutions to counter this growing issue.

Amazon Invests $100 Million in Generative AI Center to Stay Competitive

文章来源于互联网:Amazon Invests $100 Million in Generative AI Center to Stay Competitive

Amazon Web Services (AWS), the cloud computing division of Amazon, has announced a strategic investment of $100 million in a new initiative called the AWS Generative AI Innovation Center.

This move aims to bolster startups and businesses focused on generative artificial intelligence, a rapidly growing field in AI.

The investment underscores AWS’s commitment to staying at the forefront of technological advancements as it competes with industry giants like Microsoft and Google.

Generative AI is a subset of AI that goes beyond traditional classification and prediction algorithms. Instead, it enables the generation of new content, including text, images, and music, based on learned patterns.

This innovative technology has the potential to significantly enhance productivity and creativity by offering novel solutions and ideas.

AWS’s Ongoing Efforts in Generative AI

AWS Acknowledges the Importance of Generative AI in the Competitive Landscape

The AWS Generative AI Innovation Center aims to connect AWS-affiliated experts, including data scientists, strategists, engineers, and solutions architects, with customers and partners to accelerate enterprise innovation in the field of generative AI.

By encouraging collaboration and delivering resources, AWS seeks to empower businesses in leveraging generative AI to drive success and growth.

Sri Elaprolu, heading the AWS Generative AI Innovation Center, highlighted the program’s objectives and its potential impact on various sectors.

Initially, the center will prioritize customers who have demonstrated interest in generative AI, focusing on industries such as financial services, healthcare, life sciences, media and entertainment, automotive, energy, utilities, and telecommunications.

This $100 million investment follows AWS’s recent efforts to promote generative AI, including a 10-week program for generative AI startups and the launch of Bedrock, a platform for building generative AI-powered applications.

Additionally, AWS has been collaborating with Nvidia to develop next-generation infrastructure for training AI models, supplementing its existing Trainium hardware.

The significant economic potential of generative AI is evident, with projections suggesting a potential addition of $4.4 trillion to the global economy annually.

As the AI industry continues to expand, reaching an estimated worth of $15.7 trillion by 2030, AWS’s strategic investment positions them to tap into this immense opportunity.

While challenges remain, such as meeting the demand for AI chips and ensuring enterprise security, AWS remains confident in its ability to deliver customer-centric solutions.

By prioritizing customer needs and leveraging its expertise, AWS aims to solidify its position as a leading generative AI services and support provider.

As the race for dominance in AI intensifies, Amazon’s substantial investment reaffirms its commitment to staying ahead of the curve and driving innovation in the ever-evolving field of generative AI.