问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

php的sockets是做什么用的

发布网友 发布时间:2022-04-20 06:05

我来回答

2个回答

懂视网 时间:2022-05-11 09:33

SimpleSHM 是一个较小的抽象层,用于使用 PHP 操作共享内存,支持以一种面向对象的方式轻松操作内存段。在编写使用共享内存进行存储的小型应用程序时,这个库可帮助创建非常简洁的代码。可以使用 3 个方法进行处理:读、写和删除。从该类中简单地实例化一个对象,可以控制打开的共享内存段。

类对象和测试代码

<?php
//类对象
namespace SimpleSHM;
class Block
{
 /**
 * Holds the system id for the shared memory block
 *
 * @var int
 * @access protected
 */
 protected $id;
 /**
 * Holds the shared memory block id returned by shmop_open
 *
 * @var int
 * @access protected
 */
 protected $shmid;
 /**
 * Holds the default permission (octal) that will be used in created memory blocks
 *
 * @var int
 * @access protected
 */
 protected $perms = 0644;
 /**
 * Shared memory block instantiation
 *
 * In the constructor we'll check if the block we're going to manipulate
 * already exists or needs to be created. If it exists, let's open it.
 *
 * @access public
 * @param string $id (optional) ID of the shared memory block you want to manipulate
 */
 public function __construct($id = null)
 {
 if($id === null) {
  $this->id = $this->generateID();
 } else {
  $this->id = $id;
 }
 if($this->exists($this->id)) {
  $this->shmid = shmop_open($this->id, "w", 0, 0);
 }
 }
 /**
 * Generates a random ID for a shared memory block
 *
 * @access protected
 * @return int System V IPC key generated from pathname and a project identifier
 */
 protected function generateID()
 {
 $id = ftok(__FILE__, "b");
 return $id;
 }
 /**
 * Checks if a shared memory block with the provided id exists or not
 *
 * In order to check for shared memory existance, we have to open it with
 * reading access. If it doesn't exist, warnings will be cast, therefore we
 * suppress those with the @ operator.
 *
 * @access public
 * @param string $id ID of the shared memory block you want to check
 * @return boolean True if the block exists, false if it doesn't
 */
 public function exists($id)
 {
 $status = @shmop_open($id, "a", 0, 0);
 return $status;
 }
 /**
 * Writes on a shared memory block
 *
 * First we check for the block existance, and if it doesn't, we'll create it. Now, if the
 * block already exists, we need to delete it and create it again with a new byte allocation that
 * matches the size of the data that we want to write there. We mark for deletion, close the semaphore
 * and create it again.
 *
 * @access public
 * @param string $data The data that you wan't to write into the shared memory block
 */
 public function write($data)
 {
 $size = mb_strlen($data, 'UTF-8');
 if($this->exists($this->id)) {
  shmop_delete($this->shmid);
  shmop_close($this->shmid);
  $this->shmid = shmop_open($this->id, "c", $this->perms, $size);
  shmop_write($this->shmid, $data, 0);
 } else {
  $this->shmid = shmop_open($this->id, "c", $this->perms, $size);
  shmop_write($this->shmid, $data, 0);
 }
 }
 /**
 * Reads from a shared memory block
 *
 * @access public
 * @return string The data read from the shared memory block
 */
 public function read()
 {
 $size = shmop_size($this->shmid);
 $data = shmop_read($this->shmid, 0, $size);
 return $data;
 }
 /**
 * Mark a shared memory block for deletion
 *
 * @access public
 */
 public function delete()
 {
 shmop_delete($this->shmid);
 }
 /**
 * Gets the current shared memory block id
 *
 * @access public
 */
 public function getId()
 {
 return $this->id;
 }
 /**
 * Gets the current shared memory block permissions
 *
 * @access public
 */
 public function getPermissions()
 {
 return $this->perms;
 }
 /**
 * Sets the default permission (octal) that will be used in created memory blocks
 *
 * @access public
 * @param string $perms Permissions, in octal form
 */
 public function setPermissions($perms)
 {
 $this->perms = $perms;
 }
 /**
 * Closes the shared memory block and stops manipulation
 *
 * @access public
 */
 public function __destruct()
 {
 shmop_close($this->shmid);
 }
}
<?php
//测试使用代码
namespace SimpleSHMTest;
use SimpleSHMBlock;
class BlockTest extends PHPUnit_Framework_TestCase
{
 public function testIsCreatingNewBlock()
 {
 $memory = new Block;
 $this->assertInstanceOf('SimpleSHMBlock', $memory);
 $memory->write('Sample');
 $data = $memory->read();
 $this->assertEquals('Sample', $data);
 }
 public function testIsCreatingNewBlockWithId()
 {
 $memory = new Block(897);
 $this->assertInstanceOf('SimpleSHMBlock', $memory);
 $this->assertEquals(897, $memory->getId());
 $memory->write('Sample 2');
 $data = $memory->read();
 $this->assertEquals('Sample 2', $data);
 }
 public function testIsMarkingBlockForDeletion()
 {
 $memory = new Block(897);
 $memory->delete();
 $data = $memory->read();
 $this->assertEquals('Sample 2', $data);
 }
 public function testIsPersistingNewBlockWithoutId()
 {
 $memory = new Block;
 $this->assertInstanceOf('SimpleSHMBlock', $memory);
 $memory->write('Sample 3');
 unset($memory);
 $memory = new Block;
 $data = $memory->read();
 $this->assertEquals('Sample 3', $data);
 }
}

额外说明

<?php
 
$memory = new SimpleSHM;
$memory->write('Sample');
echo $memory->read();
 
?>

请注意,上面代码里没有为该类传递一个 ID。如果没有传递 ID,它将随机选择一个编号并打开该编号的新内存段。我们可以以参数的形式传递一个编号,供构造函数打开现有的内存段,或者创建一个具有特定 ID 的内存段,如下

<?php
 
$new = new SimpleSHM(897);
$new->write('Sample');
echo $new->read();
 
?>

神奇的方法 __destructor 负责在该内存段上调用 shmop_close 来取消设置对象,以与该内存段分离。我们将这称为 “SimpleSHM 101”。现在让我们将此方法用于更高级的用途:使用共享内存作为存储。存储数据集需要序列化,因为数组或对象无法存储在内存中。尽管这里使用了 JSON 来序列化,但任何其他方法(比如 XML 或内置的 PHP 序列化功能)也已足够。如下

<?php
 
require('SimpleSHM.class.php');
 
$results = array(
 'user' => 'John',
 'password' => '123456',
 'posts' => array('My name is John', 'My name is not John')
);
 
$data = json_encode($results);
 
$memory = new SimpleSHM;
$memory->write($data);
$storedarray = json_decode($memory->read());
 
print_r($storedarray);
 
?>

我们成功地将一个数组序列化为一个 JSON 字符串,将它存储在共享内存块中,从中读取数据,去序列化 JSON 字符串,并显示存储的数组。这看起来很简单,但请想象一下这个代码片段带来的可能性。您可以使用它存储 Web 服务请求、数据库查询或者甚至模板引擎缓存的结果。在内存中读取和写入将带来比在磁盘中读取和写入更高的性能。

使用此存储技术不仅对缓存有用,也对应用程序之间的数据交换也有用,只要数据以两端都可读的格式存储。不要低估共享内存在 Web 应用程序中的力量。可采用许多不同的方式来巧妙地实现这种存储,惟一的限制是开发人员的创造力和技能。

热心网友 时间:2022-05-11 06:41

HP 使用Berkley的socket库来创建它的连接。你可以知道socket只不过是一个数据结构。你使用这个socket数据结构去开始一个客户端和服务器之间的会话。这个服务器是一直在监听准备产生一个新的会话。当一个客户端连接服务器,它就打开服务器正在进行监听的一个端口进行会话。这时,服务器端接受客户端的连接请求,那么就进行一次循环。现在这个客户端就能够发送信息到服务器,服务器也能发送信息给客户端。
产生一个Socket,你需要三个变量:一个协议、一个socket类型和一个公共协议类型。产生一个socket有三种协议供选择,继续看下面的内容来获取详细的协议内容。
定义一个公共的协议类型是进行连接一个必不可少的元素。下面的表我们看看有那些公共的协议类型。

表一:协议
名字/常量 描述
AF_INET 这是大多数用来产生socket的协议,使用TCP或UDP来传输,用在IPv4的地址
AF_INET6 与上面类似,不过是来用在IPv6的地址
AF_UNIX 本地协议,使用在Unix和Linux系统上,它很少使用,一般都是当客户端和服务器在同一台及其上的时候使用
表二:Socket类型
名字/常量 描述
SOCK_STREAM 这个协议是按照顺序的、可靠的、数据完整的基于字节流的连接。这是一个使用最多的socket类型,这个socket是使用TCP来进行传输。
SOCK_DGRAM 这个协议是无连接的、固定长度的传输调用。该协议是不可靠的,使用UDP来进行它的连接。
SOCK_SEQPACKET 这个协议是双线路的、可靠的连接,发送固定长度的数据包进行传输。必须把这个包完整的接受才能进行读取。
SOCK_RAW 这个socket类型提供单一的网络访问,这个socket类型使用ICMP公共协议。(ping、traceroute使用该协议)
SOCK_RDM 这个类型是很少使用的,在大部分的操作系统上没有实现,它是提供给数据链路层使用,不保证数据包的顺序

表三:公共协议
名字/常量 描述
ICMP 互联网控制消息协议,主要使用在网关和主机上,用来检查网络状况和报告错误信息
UDP 用户数据报文协议,它是一个无连接,不可靠的传输协议
TCP 传输控制协议,这是一个使用最多的可靠的公共协议,它能保证数据包能够到达接受者那儿,如果在传输过程中发生错误,那么它将重新发送出错数据包。

现在你知道了产生一个socket的三个元素,那么我们就在php中使用socket_create()函数来产生一个socket。这个 socket_create()函数需要三个参数:一个协议、一个socket类型、一个公共协议。socket_create()函数运行成功返回一个包含socket的资源类型,如果没有成功则返回false。
Resourece socket_create(int protocol, int socketType, int commonProtocol);

现在你产生一个socket,然后呢?php提供了几个操纵socket的函数。你能够绑定socket到一个IP,监听一个socket的通信,接受一个socket;现在我们来看一个例子,了解函数是如何产生、接受和监听一个socket。

<?php
$commonProtocol = getprotobyname(“tcp”);
$socket = socket_create(AF_INET, SOCK_STREAM, $commonProtocol);
socket_bind($socket, ‘localhost’, 1337);
socket_listen($socket);
// More socket functionality to come
?>

上面这个例子产生一个你自己的服务器端。例子第一行,
$commonProtocol = getprotobyname(“tcp”);
使用公共协议名字来获取一个协议类型。在这里使用的是TCP公共协议,如果你想使用UDP或者ICMP协议,那么你应该把getprotobyname() 函数的参数改为“udp”或“icmp”。还有一个可选的办法是不使用getprotobyname()函数而是指定SOL_TCP或SOL_UDP在 socket_create()函数中。
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
例子的第二行是产生一个socket并且返回一个socket资源的实例。在你有了一个socket资源的实例以后,你就必须把socket绑定到一个IP地址和某一个端口上。
socket_bind($socket, ‘localhost’, 1337);
在这里你绑定socket到本地计算机(127.0.0.1)和绑定socket到你的1337端口。然后你就需要监听所有进来的socket连接。
socket_listen($socket);
在第四行以后,你就需要了解所有的socket函数和他们的使用。

表四:Socket函数
函数名 描述
socket_accept() 接受一个Socket连接
socket_bind() 把socket绑定在一个IP地址和端口上
socket_clear_error() 清除socket的错误或者最后的错误代码
socket_close() 关闭一个socket资源
socket_connect() 开始一个socket连接
socket_create_listen() 在指定端口打开一个socket监听
socket_create_pair() 产生一对没有区别的socket到一个数组里
socket_create() 产生一个socket,相当于产生一个socket的数据结构
socket_get_option() 获取socket选项
socket_getpeername() 获取远程类似主机的ip地址
socket_getsockname() 获取本地socket的ip地址
socket_iovec_add() 添加一个新的向量到一个分散/聚合的数组
socket_iovec_alloc() 这个函数创建一个能够发送接收读写的iovec数据结构
socket_iovec_delete() 删除一个已经分配的iovec
socket_iovec_fetch() 返回指定的iovec资源的数据
socket_iovec_free() 释放一个iovec资源
socket_iovec_set() 设置iovec的数据新值
socket_last_error() 获取当前socket的最后错误代码
socket_listen() 监听由指定socket的所有连接
socket_read() 读取指定长度的数据
socket_readv() 读取从分散/聚合数组过来的数据
socket_recv() 从socket里结束数据到缓存
socket_recvfrom() 接受数据从指定的socket,如果没有指定则默认当前socket
socket_recvmsg() 从iovec里接受消息
socket_select() 多路选择
socket_send() 这个函数发送数据到已连接的socket
socket_sendmsg() 发送消息到socket
socket_sendto() 发送消息到指定地址的socket
socket_set_block() 在socket里设置为块模式
socket_set_nonblock() socket里设置为非块模式
socket_set_option() 设置socket选项
socket_shutdown() 这个函数允许你关闭读、写、或者指定的socket
socket_strerror() 返回指定错误号的详细错误
socket_write() 写数据到socket缓存
socket_writev() 写数据到分散/聚合数组

(注: 函数介绍删减了部分原文内容,函数详细使用建议参考英文原文,或者参考PHP手册)

以上所有的函数都是PHP中关于socket的,使用这些函数,你必须把你的socket打开,如果你没有打开,请编辑你的php.ini文件,去掉下面这行前面的注释:
extension=php_sockets.dll
如果你无法去掉注释,那么请使用下面的代码来加载扩展库:
<?php
if(!extension_loaded(‘sockets’))
{
if(strtoupper(substr(PHP_OS, 3)) == “WIN”)
{
dl(‘php_sockets.dll’);
}
else
{
dl(‘sockets.so’);
}
}
?>

如果你不知道你的socket是否打开,那么你可以使用phpinfo()函数来确定socket是否打开。你通过查看phpinfo信息了解socket是否打开。如下图:

查看phpinfo()关于socket的信息

◆ 产生一个服务器

现在我们把第一个例子进行完善。你需要监听一个指定的socket并且处理用户的连接。

<?php
$commonProtocol = getprotobyname("tcp");
$socket = socket_create(AF_INET, SOCK_STREAM, $commonProtocol);
socket_bind($socket, 'localhost', 1337);
socket_listen($socket);
// Accept any incoming connections to the server
$connection = socket_accept($socket);
if($connection)
{
socket_write($connection, "You have connected to the socket.../n/r");
}
?>

你应该使用你的命令提示符来运行这个例子。理由是因为这里将产生一个服务器,而不是一个Web页面。如果你尝试使用Web浏览器来运行这个脚本,那么很有可能它会超过30秒的限时。你可以使用下面的代码来设置一个无限的运行时间,但是还是建议使用命令提示符来运行。
set_time_limit(0);
在你的命令提示符中对这个脚本进行简单测试:
Php.exe example01_server.php
如果你没有在系统的环境变量中设置php解释器的路径,那么你将需要给php.exe指定详细的路径。当你运行这个服务器端的时候,你能够通过远程登陆(telnet)的方式连接到端口1337来测试这个服务器。如下图:

上面的服务器端有三个问题:1. 它不能接受多个连接。2. 它只完成唯一的一个命令。3. 你不能通过Web浏览器连接这个服务器。
这个第一个问题比较容易解决,你可以使用一个应用程序去每次都连接到服务器。但是后面的问题是你需要使用一个Web页面去连接这个服务器,这个比较困难。你可以让你的服务器接受连接,然后些数据到客户端(如果它一定要写的话),关闭连接并且等待下一个连接。
在上一个代码的基础上再改进,产生下面的代码来做你的新服务器端:

<?php
// Set up our socket
$commonProtocol = getprotobyname("tcp");
$socket = socket_create(AF_INET, SOCK_STREAM, $commonProtocol);
socket_bind($socket, 'localhost', 1337);
socket_listen($socket);
// Initialize the buffer
$buffer = "NO DATA";
while(true)
{
// Accept any connections coming in on this socket

$connection = socket_accept($socket);
printf("Socket connected/r/n");
// Check to see if there is anything in the buffer
if($buffer != "")
{
printf("Something is in the buffer...sending data.../r/n");
socket_write($connection, $buffer . "/r/n");
printf("Wrote to socket/r/n");
}
else
{
printf("No Data in the buffer/r/n");
}
// Get the input
while($data = socket_read($connection, 1024, PHP_NORMAL_READ))
{
$buffer = $data;
socket_write($connection, "Information Received/r/n");
printf("Buffer: " . $buffer . "/r/n");
}
socket_close($connection);
printf("Closed the socket/r/n/r/n");
}
?>

这个服务器端要做什么呢?它初始化一个socket并且打开一个缓存收发数据。它等待连接,一旦产生一个连接,它将打印“Socket connected”在服务器端的屏幕上。这个服务器检查缓冲区,如果缓冲区里有数据,它将把数据发送到连接过来的计算机。然后它发送这个数据的接受信息,一旦它接受了信息,就把信息保存到数据里,并且让连接的计算机知道这些信息,最后关闭连接。当连接关闭后,服务器又开始处理下一次连接。(翻译的烂,附上原文)
This is what the server does. It initializes the socket and the buffer that you use to receive
and send data. Then it waits for a connection. Once a connection is created it prints
“Socket connected” to the screen the server is running on. The server then checks to see if
there is anything in the buffer; if there is, it sends the data to the connected computer.
After it sends the data it waits to receive information. Once it receives information it stores
it in the data, lets the connected computer know that it has received the information, and
then closes the connection. After the connection is closed, the server starts the whole
process again.

◆ 产生一个客户端

处理第二个问题是很容易的。你需要产生一个php页连接一个socket,发送一些数据进它的缓存并处理它。然后你又个处理后的数据在还顿,你能够发送你的数据到服务器。在另外一台客户端连接,它将处理那些数据。
To solve the second problem is very easy. You need to create a PHP page that connects to
a socket, receive any data that is in the buffer, and process it. After you have processed the
data in the buffer you can send your data to the server. When another client connects, it
will process the data you sent and the client will send more data back to the server.

下面的例子示范了使用socket:

<?php
// Create the socket and connect
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$connection = socket_connect($socket,’localhost’, 1337);
while($buffer = socket_read($socket, 1024, PHP_NORMAL_READ))
{
if($buffer == “NO DATA”)
{
echo(“<p>NO DATA</p>”);
break;
}
else
{
// Do something with the data in the buffer
echo(“<p>Buffer Data: “ . $buffer . “</p>”);
}
}
echo(“<p>Writing to Socket</p>”);
// Write some test data to our socket
if(!socket_write($socket, “SOME DATA/r/n”))
{
echo(“<p>Write failed</p>”);
}
// Read any response from the socket
while($buffer = socket_read($socket, 1024, PHP_NORMAL_READ))
{
echo(“<p>Data sent was: SOME DATA<br> Response was:” . $buffer . “</p>”);
}
echo(“<p>Done Reading from Socket</p>”);
?>

这个例子的代码演示了客户端连接到服务器。客户端读取数据。如果这是第一时间到达这个循环的首次连接,这个服务器将发送“NO DATA”返回给客户端。如果情况发生了,这个客户端在连接之上。客户端发送它的数据到服务器,数据发送给服务器,客户端等待响应。一旦接受到响应,那么它将把响应写到屏幕上。
php的sockets是做什么用的

AF_INET这是大多数用来产生socket的协议,使用TCP或UDP来传输,用在IPv4的地址AF_INET6与上面类似,不过是来用在IPv6的地址AF_UNIX本地协议,使用在Unix和Linux系统上,它很少使用,一般都是当客户端和服务器在同一台及其上的时候使用...

php实现websocket实时消息推送

WebSocket是一个持久化的协议,这是相对于http非持久化来说的。应用层协议举个简单的例子,http1.0的生命周期是以request作为界定的,也就是一个request,一个response,对于http来说,本次client与server的会话到此结束;...

php为什么不适合socket

因为socket主要面向底层和网络服务开发,一般服务器端都是用C或Java等语言实现,这样能更好地操作底层,对网络服务开发中遇到的问题(如并发、阻塞等)也有成熟完善的解决方案,而PHP显然不适合这种应用场景。(推荐学习...

php即时通讯是怎么搭建的?有没有知道的?

Ratchet官方文档:Ratchet是一个PHPWebSocket库,可以用来构建即时通讯应用程序。官方文档提供了详细的使用说明和示例代码。PHPWebSockets:这是一个使用PHP编写的WebSocket服务器框架,它的目标是提供一个简单的方法来构建实时应...

研究tcp和socket连接php-fpm两种方式的区别

TcpClient是对传输层操作ASP.NET是对会话层操作---TcpClient是Socket的基础上的封装。一般的应用,用TcpClient可以了,或者使用NetStream,如果要做点高级的事情,建议用Socket做。

求PHP SOCKET编程原理

客户端初始化一个Socket,然后连接服务器(connect),如果连接成功,这时客户端与服务器端的连接就建立了。客户端发送数据请求,服务器端接收请求并处理请求,然后把回应数据发送给客户端,客户端读取数据,最后关闭连接,一次交互...

php用socket获得客户端的ip和端口

importsockets=socket.socket(socket.af_inet,socket.sock_stream)s.bind(('127.0.0.1',8888))s.listen(1)conn,addr=s.accept()printconn,addr('127.0.0.1',2134)addr第一个为客户端ip,第二个...

socketphp心跳包和报文区分

socketphp心跳包和报文区分如下:1、心跳包HeartbeatPacket通常是指在网络连接稳定时,定期发送的一种探测包,用于检测客户端和服务器之间的连接是否正常,通常情况下,客户端和服务器之间会通过通信协议规定一个固定时间间隔,客...

thinkphp5 有socket类吗

".socket_strerror(socket_last_error($sock))."\n";break;如果你对php这类有兴趣的话,可以和我一样在后盾人经常看看教材,自己多看几遍,慢慢的以后就明白了,希望能帮到你,给个采纳吧谢谢<(*ΦωΦ*)>...

html5的websocket和php的socket分别完成客户端与服务器端的通信过程...

echo'current-file='.__FILE__.'';echo'current-dir='.dirname(__FILE__).'';echo'http-root='.$_SERVER['HTTP_HOST'].'';echo'web-position='.$_

php到底是做什么的php主要是做什么的php用来做什么的php是用来干什么的php开发工程师是做什么的websockets为什么要订阅php是做什么学会php可以做什么php是什么意思啊
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
地质罗盘的上E和W的方向与现实中的E、W方向为什么是反着的,急!急... 从中心东道到千里堤怎么坐公交车,最快需要多久 想去天津千里堤早市,谁能告诉我怎么走。我住北宁公园附近 从南口路到千里堤华鸟鱼虫市场公交车 从友谊路友谊花园到红桥区千里堤大市场的公交车 我是一个历史课代表,历史老师是一个幽默的男老师,但他不喜欢我,对我... 中国银行新企业网银怎么操作查询、删除、修改已维护的转账收款人?_百 ... 零能源建筑的建筑效果 中办、国办:加强财政、金融等政策支持,推动高质量绿色建筑规模化... ...手机清理垃圾的时候就会发现相册里有很多QQ杂图? 什么是socket接口?&gt; socket的种类 Socket什么意思 socket什么意思? 绿松放水在冰箱反油性 阴皮星月菩提子怎么盘 如何买到上等的绿松石? 这是绿松吗 绿松会越盘颜色越深嘛 绿松石怕镀金液吗 绿松牌子掉皮 信托和基金的区别 私募基金和信托哪个安全 信托基金和信托的区别是什么? 信托与基金有何区别 信托和基金的对比有什么差别? 200万投信托和私募基金哪个更好? 信托与基金有哪些区别 信托和基金的区别详解 信托和基金是一回事吗 信托和基金的区别是什么? “叶”的读音是什么?拼音怎么拼写? 叶字的拼音是什么 叶字拼音怎么拼叶字怎么读 拼音怎么拼 叶字拼音怎么拼叶字怎么读拼音怎么拼 叶子的拼音怎么打? 叶的拼音是什么 叶子拼音怎么写 叶子拼音怎么打? “叶”这个字怎么读 叶字拼音怎么拼 树叶的拼音是什么 “叶”的读音是什么? “叶”这个字拼音为什么不是“yie” 树叶的拼音怎么写 “叶”的拼音为什么不是“yie”? 一年级拼音“叶子”怎么拼读? 叶的繁体怎么写? 叶 求正确拼音,谢谢! 为什么跑步以后会突然来月经 来完月经后几天一跑步就又好像来了,而且很少