其他用户没有钱
function randomNum(min, max) {
var YourMoney = 100
var MoneyLeft
var n = []
for (i = 0; i < 3; i++) {
n.push(Math.floor(Math.random() * max) + min)
}
document.getElementById("randomNumbers").innerHTML = n;
YourMoney = YourMoney - 100
document.getElementById("remain").innerHTML = YourMoney
if (YourMoney < 100) {
document.getElementById("lost").innerHTML = "You have lost ";
}
}
答案 0 :(得分:0)
我已经在1小时内编写了这段代码! phe! :) ..希望它有帮助..在您了解完整代码后,还可以删除所有控制台!
java.lang.IllegalArgumentException: Not a valid geo location: -118.2541117, 33.985805
at com.firebase.geofire.GeoLocation.<init>(GeoLocation.java:51)
at com.example.webforest.quickaidlikeuber2nd.CustomerMapActivity.getDriversAround(CustomerMapActivity.java:577)
at com.example.webforest.quickaidlikeuber2nd.CustomerMapActivity.access$2300(CustomerMapActivity.java:76)
at com.example.webforest.quickaidlikeuber2nd.CustomerMapActivity$10.onLocationResult(CustomerMapActivity.java:512)
at com.google.android.gms.internal.location.zzau.notifyListener(Unknown Source)
at com.google.android.gms.common.api.internal.ListenerHolder.notifyListenerInternal(Unknown Source)
at com.google.android.gms.common.api.internal.ListenerHolder$zaa.handleMessage(Unknown Source)
for i in range(0,4):
x1 = (i != c)
x2 = (knows(i, c))
x3 = (knows(c, i))
print("-------")
# if x1 & x2 | x3!=1: # note !=
if x1 & x2 | (x3!=1): # you may want this
print(c)