SELECT *,( 6371 * acos ( cos ( radians( 34.21702164242081 ) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians( 113.76823781349185 ) ) + sin ( radians( 34.21702164242081 ) ) * sin( radians( latitude ) ) ) ) AS distance //距离 FROM merchant HAVING distance < 0.5 //筛选距离小于0.5km的商家(可不写),如果没查到数据就是没有小于0.5km的商家 ORDER BY distance //根据距离远近来排序 默认升序 (可不写) LIMIT 0 , 10; //显示前10条数据(可不写)
String name ="ceshi"; name.c_str();//转char *
#include <WiFi.h> #include <DNSServer.h> #include <WebServer.h> #include <ESPmDNS.h> //用于设备域名 MDNS.begin("esp32") #include <esp_wifi.h> //用于esp_wifi_restore() 删除保存的wifi信息 const int baudRate = 115200; //设置波特率 const byte DNS_PORT = 53; //设置DNS端口号 const int webPort = 80; //设置Web端口号 const int resetPin = 0; //设置重置按键引脚,用于删除WiFi信息 const int LED = 2; //设置LED引脚 c
VMware Player编辑ubuntu虚拟机设置,选项,共享文件夹,总是允许,添加选择windows目录。在ubuntu终端输入vmware-hgfsclient手动挂载vi /etc/fstab增加如下配置:.host:/ /mnt fuse.vmhgfs-fuse allow_other,defaults 0 0如下: /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options>
JavaScript代码<script type="text/javascript"> !function(t,r){"object"==typeof exports?module.exports=exports=r():"function"==typeof define&&define.amd?define([],r):t.CryptoJS=r()}(this,function(){var t=t||function(t,r){var e=Object.create||function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}}(),i={},n=i.lib={},o=n.Base=function(){return{extend:function(t){var r=e(this);return t&&r.mixIn(t),r.hasOw
柚子生活
一个很懒的人