小编Gil*_*ton的帖子

<form action=".">做什么

我有一个基本问题。我找不到对 form action="." 的解释。尽管在 google、www.w3schools.com 等上搜索...

有谁知道是什么。表格的行动手段?它是特定于 Django 的吗?引导程序?

代码如下:

{% extends "Blog.html" %}
{% block blog%}
  <h1>Create an account</h1>
  <p>Please, sign up using the following form:</p>
  <form action="." method="post">
    {{ user_form.as_p }}
    {% csrf_token %}
    <p><input type="submit" value="Create my account"></p>
  </form>
{% endblock %}
Run Code Online (Sandbox Code Playgroud)

html forms django twitter-bootstrap

5
推荐指数
1
解决办法
1623
查看次数

F#数组的累积产品

使用F#,我想计算没有任何循环的数组的累积产品.第一个想法是使用Array.fold和Array.map,但我不知道如何使用它们.你有什么建议?或peharps使用递归函数?非常感谢您的帮助.

f#

4
推荐指数
1
解决办法
958
查看次数

如何使用openpyxl设置图表区域的图形属性

我想更改 Chart_area 的背景颜色并删除所有边框。关于背景颜色,我尝试了建议的解决方案:How to set Background Color of Plot Area of​​ Chart using openpyxl但这个解决方案不适用于任何图表,即 BarChart、AreaChart、LineChart、ScatterChart、RadarChart 等......我试过了两个 openpyxl 版本:2.4.7、2.4.9。没有成功。

# setup the chart
chart = LineChart()
# test to remove border line 
*****************************************************
chart.graphical_properties = 
GraphicalProperties(ln=LineProperties(noFill=True))
chart.height = 9
chart.width = 13.4
props = GraphicalProperties(solidFill="f2f2f2")

# setup and append the first series
list_names = ['Fund', 'Market', 'Benchmark']
data = Reference(ws2, min_col=2, min_row=1, max_col=n + 1, max_row=p + 
1)

chart.x_axis.number_format = 'mmm yy'
chart.x_axis.majorTimeUnit = "months"
chart.add_data(data, titles_from_data=True)
dates = …
Run Code Online (Sandbox Code Playgroud)

python charts python-3.x openpyxl

2
推荐指数
1
解决办法
2520
查看次数

标签 统计

charts ×1

django ×1

f# ×1

forms ×1

html ×1

openpyxl ×1

python ×1

python-3.x ×1

twitter-bootstrap ×1