# assign the value 12 to the base
base = 12
# assign the value 16 to the height
height = 16
# assign the results of the operation to the variable area
# the operation multiplies base by height
# assign the area of a triangle formula
area = (1/2) * (base*height)
# print the value of triangle area
print(area)
答案 0 :(得分:0)
像这样:
<!DOCTYPE html>
<html>
<body>
<script>
context = new AudioContext();
function playChordSound(cho){
window.cp.buildChordPlayer(cho, context).play();
}
</script>
<button id="playChordBtn"></button>
<script src="./lib/nativescript-webview-interface.js"></script>
<script src="./index.js"></script>
<!-- <script src="https://www.scales-chords.com/api/scales-chords-api.js"></script> -->
<script src="./chordplayer/src/dist/main.js"></script>
</body>
</html>