摘要: 1.导出指定表的数据 mysqldump -t database -u username -ppassword --tables table_name1 table_name2 table_name3 >D:\db_script.sql 2.导出指定表的结构 mysqldump -d databas 阅读全文
posted @ 2024-02-22 00:14 lucky_tomato 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 使用git pull来更新代码时,有时会遇到以下的问题:error: Your local changes to the following files would be overwritten by merge:....phpPlease, commit your changes or stash 阅读全文
posted @ 2024-02-22 00:10 lucky_tomato 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 比如:https://xxx/test/abc/cat.jpg?userid=user1&auth=123 按顺序匹配,首先尝试读取$uri,这里的uri是指/test/abc/cat.jpg,尝试去当前工作目录下的/test/abc/目录读取这个cat.jpg的静态文件, 发现没有,就去匹配第2个 阅读全文
posted @ 2024-02-22 00:08 lucky_tomato 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 使用函数 list() [] 直接使用 用哪种最快,使用[]最快 这是因为 是 [] 字面语法( literal syntax ),而 list() 是构造函数调用。毫无疑问,调用函数需要额外的时间。 同理,在创建字典时,我们也应该利用 {} 而不是 dict() import timeit pri 阅读全文
posted @ 2024-02-22 00:02 lucky_tomato 阅读(24) 评论(0) 推荐(0) 编辑