logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Python 如何让自己的代码更有逼格 pythonic

优美胜于丑陋明了胜于隐晦简洁胜于复杂复杂胜于混乱扁平胜于嵌套宽松胜于紧凑可读性很重要即便是特例,也不可违背这些规则虽然现实往往不那么完美但是不应该放过任何异常除非你确定需要如此如果存在多种可能,不要猜测肯定有一种通常也是唯一种最佳的解决方案虽然这并不容易,因为你不是Python之父动手比不动手要好但不假思索就动手还不如不做如果你的方案很难懂,那肯定是一个糟糕的方案如果你的方案很好懂,那肯定是一个好

#python
Python 刷Leetcode题库,顺带学英语单词(10)

Combination SumGiven a set of candidate numbers ( candidates ) (without duplicates) and a target number ( target ), find all unique combinations in candidates where the candidate numbers sums to targe

#python
百度「文心一言」阿里「通义千问」腾讯的AI将会叫什么呢

阿里于昨天2023.4.7下午上线通义千问,与ChatGPT类似,同样是基于语言模型训练的人工智能聊天平台。通义千问的核心功能分为四个大类:撰写短文、职场助理、电影脚本和写封邮件。

文章图片
#人工智能#前沿技术
Python​ 重解零基础100题(10-2)

常用函数列表:>>> import random>>> [i for i in dir(random) if i[0]>='a']['betavariate', 'choice', 'choices', 'expovariate', 'gammavariate', 'gauss','getrandbits', 'getstate', 'lognormvar

#python
Python​ 重解零基础100题(4)

第31题问题:定义一个函数,它可以接受两个字符串作为输入,并在控制台中以最大长度打印字符串。如果两个字符串长度相同,则函数应逐行打印所有字符串。提示:使用len()函数获取字符串的长度。defprintValue(s1,s2):len1=len(s1)len2=len(s2)iflen1>len2:print(s1)eliflen2>len1:print(s2)else:...

Python每日一练(20230411) 环形链表、比较版本号、基本计算器

1. 环形链表🌟 2. 比较版本号🌟🌟 3. 基本计算器🌟🌟🌟

文章图片
#python#leetcode#链表
南大《探索数据的奥秘》课件示例代码笔记16

In [3]: from sklearn.model_selection import train_test_splitimport numpy as npimport pandas as pdfrom matplotlib import pyplot as pltdf=pd.read_csv('C:\Python\Scripts\my_data\iris.csv',header=None,nam

Python 刷Leetcode题库,顺带学英语单词(20)

Add BinaryGiven two binary strings, return their sum (also a binary string).[#67]The input strings are both non-empty and contains only characters 1 or 0 .Examples:Input: a = "11", b = "1"Output: "100

#python
Python每日一练(20230424) 滑动窗口最大值、栈实现队列、直线上最多的点数

1. 滑动窗口最大值🌟🌟🌟2. 用栈实现队列🌟3. 直线上最多的点数🌟🌟🌟

文章图片
#python#leetcode
DeepSeek进入“国家队”,超算互联网上线DS-R1等模型

国家超算互联网平台还上线了 DeepSeek-V3、DeepSeek-v2.5 系列、DeepSeek-coder 系列、DeepSeek-math 系列(7b)和 DeepSeek-v2 系列(Lite)等模型。2 月 5 日消息,据“超算互联网”公众号,DeepSeek-R1 等系列模型已陆续上线国家超算互联网平台。国家超算互联网平台已正式上线 DeepSeek-R1 模型的 1.5B、7B、

文章图片
#人工智能
    共 96 条
  • 1
  • 2
  • 3
  • 10
  • 请选择