我正在尝试安装作曲家,但出现错误,
我做了什么 ,
wget https://getcomposer.org/installerphp installer --check使用 Composer 的所有设置都正确
php installer我得到的错误,
无法下载“ https://getcomposer.org/versions ”文件:无法启用加密无法打开流:操作失败下载反复失败,正在中止。
我试过谷歌但没有运气
我是telethon和python的新手.我已经在python3中安装了telethon,我希望获得电报频道或小组的所有成员.我在互联网上搜索了很多,发现下面的代码.我正在努力去理解它.Telegram文档还不足以做到这一点.有更好的解决方案吗?
from telethon import TelegramClient
from telethon.tl.functions.contacts import ResolveUsernameRequest
from telethon.tl.functions.channels import GetAdminLogRequest
from telethon.tl.functions.channels import GetParticipantsRequest
from telethon.tl.types import ChannelParticipantsRecent
from telethon.tl.types import InputChannel
from telethon.tl.types import ChannelAdminLogEventsFilter
from telethon.tl.types import InputUserSelf
from telethon.tl.types import InputUser
# These example values won't work. You must get your own api_id and
# api_hash from https://my.telegram.org, under API Development.
api_id = 12345
api_hash = '8710a45f0f81d383qwertyuiop'
phone_number = '+123456789'
client = TelegramClient(phone_number, api_id, api_hash)
client.session.report_errors = False
client.connect()
if not client.is_user_authorized():
client.send_code_request(phone_number)
client.sign_in(phone_number, …Run Code Online (Sandbox Code Playgroud) 我有一个像这样的字符串:
$str="hello world 2 in 365 php";
Run Code Online (Sandbox Code Playgroud)
我要这个:
['hello world' , 'in' , 'php']
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?