我希望服务器在以“ v”开头的子目录中提供相同的文件作为网站的根。
例如,如果有人访问https://example.com/v[number],他们应该会看到与https://example.com中相同的内容。
我该如何修改.htaccess文件呢?
答案 0 :(得分:1)
好吧。您需要实现内部重写,在这里我看不到任何花哨的地方:
fields, volts = [], []
index =iter(range(20))
from numpy import random
def animate(i):
global fields, volts
fields.append(len(volts))
volts.append(random.randint(0,5))
plt.cla()
plt.plot(fields, volts, c='c')
fig = plt.figure(figsize=(8,4))
ax = fig.add_subplot(111)
ani = FuncAnimation(fig, animate, frames=20, interval=1000)
plt.show()
我建议您看一下文档。作为OpenSource的典型代表,它具有卓越的质量,并提供了很好的示例: