我知我心
我知我心
全部文章
分类
acm(8)
c++(10)
c语言(29)
django(14)
html,css(9)
javascript(3)
linux(3)
python(30)
剑指offer(6)
动态规划(6)
工具(3)
数据库(2)
数据结构(12)
贪心算法(8)
归档
标签
去牛客网
登录
/
注册
我知我心的博客
全部文章
(共143篇)
最长公共子序列
方法1: -------------------------------------------------------------------------------- #include<stdio.h> #include<string.h> #include<std...
2020-08-21
0
434
01背包
方法1: -------------------------------------------------------------------------------- #include<stdio.h> int max(int a, int b) { if (a > b...
2020-08-21
0
571
完全背包
#include<stdio.h> #include<string.h> int max(int a, int b) { return (a > b ? a : b); } int main() { int m; scanf("%d&q...
2020-08-21
0
448
数塔
#include<stdio.h> int max(int a, int b) { return (a > b ? a : b); } int main() { int n; while (scanf("%d",&n) != EO...
2020-08-21
0
479
python中列表的基本操作
个人博客页面链接:http://www.shihao.online/(django搭建的个人博客,还在完善中) #encoding:utf-8 # 访问列表元素 print("\n访问列表元素:") bicycles = ['terk', 'cannonddale', 're...
2020-08-21
0
482
python中if语句的运用
#encoding:utf-8 #if语句的运用 cars = ['audi', 'bmw', 'subaru', 'toyota'] for car in cars: if car == 'bmw': print(car.upper()) else: ...
2020-08-21
0
453
python中字典的基本用法
#encoding:utf-8 #使用字典 alien_0 = {'color':'green', 'position':5} print(alien_0['color']) print(alien_0['position']) print(alien_0) #添加键值对 alien_0['x_...
2020-08-21
0
639
python中使用input函数报错
个人博客页面链接:http://www.shihao.online/(django搭建的个人博客,还在完善中) err: 使用input输入时提示变量未定义报错 #encoding: utf-8 name =input("Please input your name:\n"...
2020-08-21
0
991
python中函数基本用法
#encoding: utf-8 #定义函数 def f(): print("hello") #函数的调用 f() #传递实参 def f(temp): print("hello " + temp) f('shihao') #返回字典...
2020-08-21
0
568
python中类的基本用法
#encoding:utf-8 #创建类 class Dog(): def __init__(self, name, age): self.name = name self.age = age def sit(self): pri...
2020-08-21
0
605
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页