a='1234;5' print a.index('s') Kesalahannya adalah: > "D:\Python25\pythonw.exe" "D:\zjm_code\kml\a.py" Traceback (most recent call last): File "D:\zjm_code\kml\a.py", line 4, in <module> print a.index('s') ValueError: substring not found Terima kasih....
7 April 2010, 10:48
#include<stdio.h> void function(int); int main() { int x; printf("Enter x:"); scanf("%d", &x); function(x); return 0; } void function(int x) { float fx; fx=10/x; if(10 is divided by zero)// I dont know what to put here please help printf("division by zero is....
21 Maret 2010, 04:56
if(firefox and is on a computer){ alert('using firefox on a computer') }else{ alert("using something else!"); } Bagaimana saya bisa melakukan ini?....
24 Februari 2010, 12:41
{% if is_loggedin OR is_anonymous %} test message {% endif %} ....
4 Februari 2010, 00:48
for elt in itertools.chain.from_iterable(node): if elt is the last element: do statement Bagaimana saya mencapai ini?....
13 Januari 2010, 20:36
Bagaimana menemukan perbedaan antara dua tanggal?....
28 Desember 2009, 09:02
Saya sudah; List<String> stringList = new ArrayList<String>(); List<Integer> integerList = new ArrayList<Integer>(); Apakah ada cara (mudah) untuk mengambil tipe generik dari daftar?....
22 Desember 2009, 00:08
var user = { Name: "Some user", Methods: { ShowGreetings: function() { // at this point i want to access variable "Name", //i dont want to use user.Name // **please suggest me how??** }, ....
24 November 2009, 15:53
Bagaimana cara menggabungkan dua daftar dengan Python? Contoh: listone = [1, 2, 3] listtwo = [4, 5, 6] Hasil yang diharapkan: >>> joinedlist [1, 2, 3, 4, 5, 6] ....
12 November 2009, 10:04
struct SomeStruct { int a; int b; }; SomeStruct someFn( int init ) { SomeStruct ret = { init, init }; //... return ret; } void someFn2( SomeStruct* pStruct ) { // .. } int main( ) { someFn2( &someFn(32) ); return 0; } ....
31 Oktober 2009, 19:41
document.getElementById("main").src = '02.jpg'; Bekerja Tapi $('#main').src = '02.jpg'; Tidak....
9 Oktober 2009, 03:27
<script type="text/javascript"> $(document).ready(function(){ $("#trigger").click(function () { $("#trigger-banner").toggle(); }); </script> Membantu? Terima kasih!....
8 Oktober 2009, 03:21