我很感激如何使用def ans(n):
total = 1
tcd = 0 #total used at current day
tcpd = 0 #total used at current and previous day
m = 1000000007
for j in range(0, n):
next_tot = 2*total - tcpd
next_tcd = total - tcpd
next_tcpd = tcd - tcpd
total = next_tot % m
tcd = next_tcd % m
tcpd = next_tcpd % m
return total
print(ans(999999))
或至少与746580045
以及scss
和css
合作的示例。
谢谢!
答案 0 :(得分:3)
electron-prebuilt-compile可以帮助您。来自their own provided example:
<head>
<link rel="stylesheet" type="text/less" href="main.less" />
</head>
<body id="host">
<script type="application/javascript">
import React from 'react';
import ReactDOM from 'react-dom';
import TodoApp from './components/TodoApp';
ReactDOM.render(React.createComponent(TodoApp), document.getElementById('host'));
</script>
</body>
如果您想使用webpack,可以查看electron-webpack add-ons来处理React,SASS,LESS等。