会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
友哥
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
28
下一页
2018年9月29日
mysql代码中设置变量
摘要: sql_set_variables
阅读全文
posted @ 2018-09-29 17:58 友哥
阅读(284)
评论(0)
推荐(0)
2018年9月27日
拼接index
摘要: import MySQLdb import sys db = MySQLdb.connect(host="127.0.0.1", # your host, usually localhost user="root", # your username passwd="111111", # ...
阅读全文
posted @ 2018-09-27 10:35 友哥
阅读(161)
评论(0)
推荐(0)
2018年9月26日
python import vs from import
摘要: https://stackoverflow.com/questions/9439480/from-import-vs-import
阅读全文
posted @ 2018-09-26 19:22 友哥
阅读(189)
评论(0)
推荐(0)
python 函数定义顺序
摘要: #!/usr/bin/python # Hello World def order(): print("haha") print('Hello World!') order()
阅读全文
posted @ 2018-09-26 19:17 友哥
阅读(722)
评论(0)
推荐(0)
python generator
摘要: def reverse(data): for index in range(len(data)-1, -1, -1): yield data[index] for char in reverse('golf'): print char
阅读全文
posted @ 2018-09-26 17:43 友哥
阅读(140)
评论(0)
推荐(0)
python中的class正确用法
摘要: class Dog: def __init__(self, name): self.name = name self.tricks = [] # creates a new empty list for each dog def add_trick(self, trick): self.tricks.append(tric...
阅读全文
posted @ 2018-09-26 17:34 友哥
阅读(2671)
评论(0)
推荐(0)
2018年9月25日
历史性的一张图,终于出来了。历时一年
摘要:
阅读全文
posted @ 2018-09-25 17:27 友哥
阅读(111)
评论(0)
推荐(0)
2018年9月24日
未被初始化的值
摘要: 无法确定其值是多少,很可能是野指针
阅读全文
posted @ 2018-09-24 22:57 友哥
阅读(102)
评论(0)
推荐(0)
全局变量
摘要: 慎用全局变量,即使使用,也要用函数管理起来
阅读全文
posted @ 2018-09-24 18:03 友哥
阅读(118)
评论(0)
推荐(0)
2018年9月23日
函数指针
摘要: int (*pf)(void); int f(void) { pf = &f; // 没问题 pf = ***f; // 取址? pf(); // 函数指针可以调用? (****pf)(); // 这又是什么? (***************f)(); // 这个够变态了吧? }
阅读全文
posted @ 2018-09-23 20:40 友哥
阅读(138)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
28
下一页
公告