V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Tink  ›  全部回复第 3 页 / 共 1131 页
回复总数  22614
1  2  3  4  5  6  7  8  9  10 ... 1131  
我准备加仓
12 天前
回复了 chenjackyaya 创建的主题 Apple Apple 智能上线中国大陆投诉表单
就是吐槽而已
12 天前
回复了 nododo 创建的主题 Apple mac 上 用 crossover 安装 steam 游戏的坑
steam 里面不是可以选 cdn 吗
可以的没问题
沉默的荣耀
这 ai 有点强啊
你在说 what ,你意思是 nginx 比 apache 效率高?
python
14 天前
回复了 Alone26 创建的主题 开源软件 小米家摄像头终于支持 RTSP 啦!
牛逼啊龙佬!这不得接入到 HA 里
15 天前
回复了 oIMOo 创建的主题 iPhone 请问如何从钱包中移除公交卡
下载 app ,申请退卡
16 天前
回复了 amrice 创建的主题 问与答 想改一下小爱音箱
这种建议直接用离线语音模块
肯定不一样呀,antigravity 自己测试的时候会自己打开 chrome 浏览器,模拟滚动模拟点击,自己查看 F12 报错这样,应该是专门深度集成的
要是能把 xcode simulator 一直进去就无敌了
17 天前
回复了 dododada 创建的主题 程序员 gemini3 pro 真挺好
@ccctttwww #6 他这个可以自己打开浏览器,自己访问你给的 url ,自己点击网页元素,自己滚动网页,自己提取需要的东西,不需要用户手动搞。
17 天前
回复了 shoushen 创建的主题 程序员 ai 挑战赛
我又在 ai studio 里试了一下网页版的,更离谱了。

和 anti-gravity 一样,也是一句搞定。


https://i.imgur.com/A2hjPR3.jpeg

https://i.imgur.com/JrS18Uk.jpeg
17 天前
回复了 shoushen 创建的主题 程序员 ai 挑战赛
17 天前
回复了 shoushen 创建的主题 程序员 ai 挑战赛
代码如下:

import sys
import subprocess
import threading
import time
import os

# Radio Stations List
STATIONS = [
{'id': 1, 'name': '内蒙古新闻广播 (Nei Menggu News)', 'url': 'http://lhttp.qtfm.cn/live/1883/64k.mp3'},
{'id': 2, 'name': '云南新闻广播 (Yunnan News)', 'url': 'http://lhttp.qtfm.cn/live/1926/64k.mp3'},
{'id': 3, 'name': '经典 80 年代 (China 80s)', 'url': 'http://lhttp.qtfm.cn/live/20207/64k.mp3'},
{'id': 4, 'name': 'SAW 80s (International)', 'url': 'http://stream.saw-musikwelt.de/saw-80er/mp3-128/'},
]

current_process = None
current_station_id = 1

def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')

def play_station(station):
global current_process

# Stop existing process if any
if current_process:
try:
current_process.terminate()
current_process.wait(timeout=1)
except:
try:
current_process.kill()
except:
pass

# Start new process
# -nodisp: no graphical window
# -autoexit: exit when stream ends (though streams usually don't end)
# -loglevel quiet: suppress output
cmd = ['ffplay', '-nodisp', '-autoexit', '-loglevel', 'quiet', station['url']]
try:
current_process = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except FileNotFoundError:
print("Error: ffplay not found. Please install ffmpeg.")
sys.exit(1)

def print_ui():
clear_screen()
print("=== CLI FM Radio ===")
print("Enter station ID to switch. Ctrl+C to exit.\n")

for station in STATIONS:
if station['id'] == current_station_id:
# Red color for active station
print(f"\033[91m[{station['id']}] {station['name']} (Playing)\033[0m")
else:
print(f"[{station['id']}] {station['name']}")
print("\n> ", end='', flush=True)

def main():
global current_station_id

# Play default station (first one)
play_station(STATIONS[0])
print_ui()

try:
while True:
try:
user_input = input()
if not user_input.strip():
print_ui()
continue

new_id = int(user_input.strip())
found = False
for station in STATIONS:
if station['id'] == new_id:
current_station_id = new_id
play_station(station)
found = True
break

if not found:
# Just refresh UI if invalid input
pass

print_ui()

except ValueError:
print_ui()
except KeyboardInterrupt:
print("\nExiting...")
if current_process:
current_process.terminate()
sys.exit(0)

if __name__ == "__main__":
main()
1  2  3  4  5  6  7  8  9  10 ... 1131  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4622 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 177ms · UTC 05:38 · PVG 13:38 · LAX 21:38 · JFK 00:38
♥ Do have faith in what you're doing.